Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Side by Side Diff: chrome/app/chrome_dll_main.cc

Issue 3122014: Initial change that allows to disable bookmarks in Chrome for Chrome OS (BWSI... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | chrome/browser/browser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(port): the ifdefs in here are a first step towards trying to determine 5 // TODO(port): the ifdefs in here are a first step towards trying to determine
6 // the correct abstraction for all the OS functionality required at this 6 // the correct abstraction for all the OS functionality required at this
7 // stage of process initialization. It should not be taken as a final 7 // stage of process initialization. It should not be taken as a final
8 // abstraction. 8 // abstraction.
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 singleton_command_line->AppendSwitch(switches::kInternalNaCl); 565 singleton_command_line->AppendSwitch(switches::kInternalNaCl);
566 singleton_command_line->AppendSwitch(switches::kEnableGPUPlugin); 566 singleton_command_line->AppendSwitch(switches::kEnableGPUPlugin);
567 } 567 }
568 568
569 #if defined(OS_CHROMEOS) 569 #if defined(OS_CHROMEOS)
570 if (parsed_command_line.HasSwitch(switches::kBWSI)) { 570 if (parsed_command_line.HasSwitch(switches::kBWSI)) {
571 // Disable sync and extensions if we're in "browse without sign-in" mode. 571 // Disable sync and extensions if we're in "browse without sign-in" mode.
572 CommandLine* singleton_command_line = CommandLine::ForCurrentProcess(); 572 CommandLine* singleton_command_line = CommandLine::ForCurrentProcess();
573 singleton_command_line->AppendSwitch(switches::kDisableSync); 573 singleton_command_line->AppendSwitch(switches::kDisableSync);
574 singleton_command_line->AppendSwitch(switches::kDisableExtensions); 574 singleton_command_line->AppendSwitch(switches::kDisableExtensions);
575 singleton_command_line->AppendSwitch(switches::kDisableBookmarks);
sky 2010/08/17 17:58:39 How come we're modifying the command line switches
Dmitry Polukhin 2010/08/18 08:37:51 As far as I understand we need to modify switches
575 } 576 }
576 #endif 577 #endif
577 578
578 base::ProcessId browser_pid = base::GetCurrentProcId(); 579 base::ProcessId browser_pid = base::GetCurrentProcId();
579 if (SubprocessIsBrowserChild(process_type)) { 580 if (SubprocessIsBrowserChild(process_type)) {
580 #if defined(OS_WIN) 581 #if defined(OS_WIN)
581 std::string channel_name = 582 std::string channel_name =
582 parsed_command_line.GetSwitchValueASCII(switches::kProcessChannelID); 583 parsed_command_line.GetSwitchValueASCII(switches::kProcessChannelID);
583 584
584 int browser_pid_int; 585 int browser_pid_int;
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 914
914 logging::CleanupChromeLogging(); 915 logging::CleanupChromeLogging();
915 916
916 #if defined(OS_MACOSX) && defined(GOOGLE_CHROME_BUILD) 917 #if defined(OS_MACOSX) && defined(GOOGLE_CHROME_BUILD)
917 // TODO(mark): See the TODO(mark) above at InitCrashReporter. 918 // TODO(mark): See the TODO(mark) above at InitCrashReporter.
918 DestructCrashReporter(); 919 DestructCrashReporter();
919 #endif // OS_MACOSX && GOOGLE_CHROME_BUILD 920 #endif // OS_MACOSX && GOOGLE_CHROME_BUILD
920 921
921 return rv; 922 return rv;
922 } 923 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser.cc » ('j') | chrome/browser/browser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698