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

Side by Side Diff: chrome/browser/utility_process_host.cc

Issue 1991009: Shorten several apps-related flags (Closed)
Patch Set: Created 10 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/browser/utility_process_host.h" 5 #include "chrome/browser/utility_process_host.h"
6 6
7 #include "app/app_switches.h" 7 #include "app/app_switches.h"
8 #include "app/l10n_util.h" 8 #include "app/l10n_util.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 ASCIIToWide(channel_id())); 85 ASCIIToWide(channel_id()));
86 std::string locale = g_browser_process->GetApplicationLocale(); 86 std::string locale = g_browser_process->GetApplicationLocale();
87 cmd_line->AppendSwitchWithValue(switches::kLang, locale); 87 cmd_line->AppendSwitchWithValue(switches::kLang, locale);
88 88
89 SetCrashReporterCommandLine(cmd_line); 89 SetCrashReporterCommandLine(cmd_line);
90 90
91 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 91 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
92 if (browser_command_line.HasSwitch(switches::kChromeFrame)) 92 if (browser_command_line.HasSwitch(switches::kChromeFrame))
93 cmd_line->AppendSwitch(switches::kChromeFrame); 93 cmd_line->AppendSwitch(switches::kChromeFrame);
94 94
95 if (browser_command_line.HasSwitch(switches::kEnableExtensionApps)) 95 if (browser_command_line.HasSwitch(switches::kEnableApps))
96 cmd_line->AppendSwitch(switches::kEnableExtensionApps); 96 cmd_line->AppendSwitch(switches::kEnableApps);
97 97
98 if (browser_command_line.HasSwitch( 98 if (browser_command_line.HasSwitch(
99 switches::kEnableExperimentalExtensionApis)) { 99 switches::kEnableExperimentalExtensionApis)) {
100 cmd_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); 100 cmd_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
101 } 101 }
102 102
103 #if defined(OS_POSIX) 103 #if defined(OS_POSIX)
104 // TODO(port): Sandbox this on Linux. Also, zygote this to work with 104 // TODO(port): Sandbox this on Linux. Also, zygote this to work with
105 // Linux updating. 105 // Linux updating.
106 bool has_cmd_prefix = browser_command_line.HasSwitch( 106 bool has_cmd_prefix = browser_command_line.HasSwitch(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded, 154 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Succeeded,
155 Client::OnParseUpdateManifestSucceeded) 155 Client::OnParseUpdateManifestSucceeded)
156 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed, 156 IPC_MESSAGE_HANDLER(UtilityHostMsg_ParseUpdateManifest_Failed,
157 Client::OnParseUpdateManifestFailed) 157 Client::OnParseUpdateManifestFailed)
158 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded, 158 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Succeeded,
159 Client::OnDecodeImageSucceeded) 159 Client::OnDecodeImageSucceeded)
160 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed, 160 IPC_MESSAGE_HANDLER(UtilityHostMsg_DecodeImage_Failed,
161 Client::OnDecodeImageFailed) 161 Client::OnDecodeImageFailed)
162 IPC_END_MESSAGE_MAP_EX() 162 IPC_END_MESSAGE_MAP_EX()
163 } 163 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698