summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authordpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 10:33:04 +0000
committerdpolukhin@chromium.org <dpolukhin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-19 10:33:04 +0000
commitbdb541d643bce8fa366b8102c579ff84f42e40be (patch)
tree4dd12dc263e32fac8bd3ef5f682505dae33fd9bd /chrome/app
parentdd36c66239501618aca2b8cac65b768fcb63a068 (diff)
downloadchromium_src-bdb541d643bce8fa366b8102c579ff84f42e40be.zip
chromium_src-bdb541d643bce8fa366b8102c579ff84f42e40be.tar.gz
chromium_src-bdb541d643bce8fa366b8102c579ff84f42e40be.tar.bz2
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
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/chrome_dll_main.cc2
1 files changed, 2 insertions, 0 deletions
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