From bdb541d643bce8fa366b8102c579ff84f42e40be Mon Sep 17 00:00:00 2001 From: "dpolukhin@chromium.org" Date: Thu, 19 Aug 2010 10:33:04 +0000 Subject: Land 3122014 for Anton: Initial change that allows to disable bookmarks Original CL: http://codereview.chromium.org/3122014 Initial change that allows to disable bookmarks in Chrome for Chrome OS (BWSI mode). Added disable-bookmarks flag and disabled some UI elements. BUG=chromium-os:4302 TEST=Run Chrome build for Chrome OS with --disable-bookmarks flag and verify that the corresponding UI is disabled. Verify that BWSI mode runs with this flag. Review URL: http://codereview.chromium.org/3191007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56669 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/chrome_dll_main.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chrome/app') diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc index 506a50c..487d781 100644 --- a/chrome/app/chrome_dll_main.cc +++ b/chrome/app/chrome_dll_main.cc @@ -49,6 +49,7 @@ #include "base/string_number_conversions.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" +#include "chrome/browser/defaults.h" #include "chrome/browser/diagnostics/diagnostics_main.h" #include "chrome/browser/renderer_host/render_process_host.h" #include "chrome/browser/platform_util.h" @@ -572,6 +573,7 @@ int ChromeMain(int argc, char** argv) { CommandLine* singleton_command_line = CommandLine::ForCurrentProcess(); singleton_command_line->AppendSwitch(switches::kDisableSync); singleton_command_line->AppendSwitch(switches::kDisableExtensions); + browser_defaults::bookmarks_enabled = false; } #endif -- cgit v1.1