summaryrefslogtreecommitdiffstats
path: root/extensions/shell
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2014-12-22 15:49:53 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-22 23:50:37 +0000
commit9ab037205876578d14c5686f491c37bab680eccb (patch)
tree0ab316d7023d4e6bc6243734f5407ac01a8a8f06 /extensions/shell
parentfdb146cf261d909613a1d1b11e70d0ba96280ffe (diff)
downloadchromium_src-9ab037205876578d14c5686f491c37bab680eccb.zip
chromium_src-9ab037205876578d14c5686f491c37bab680eccb.tar.gz
chromium_src-9ab037205876578d14c5686f491c37bab680eccb.tar.bz2
Make callers of CommandLine use it via the base:: namespace.
Covers courgette/, dbus/, device/, extensions/, gin/, google_apis/, and gpu/. BUG=422426 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/819193002 Cr-Commit-Position: refs/heads/master@{#309490}
Diffstat (limited to 'extensions/shell')
-rw-r--r--extensions/shell/app/shell_main_delegate.cc2
-rw-r--r--extensions/shell/browser/default_shell_browser_main_delegate.cc7
-rw-r--r--extensions/shell/browser/shell_browser_main_parts.cc4
-rw-r--r--extensions/shell/browser/shell_content_browser_client.cc9
4 files changed, 10 insertions, 12 deletions
diff --git a/extensions/shell/app/shell_main_delegate.cc b/extensions/shell/app/shell_main_delegate.cc
index 51390f9..fb762e9 100644
--- a/extensions/shell/app/shell_main_delegate.cc
+++ b/extensions/shell/app/shell_main_delegate.cc
@@ -99,7 +99,7 @@ bool ShellMainDelegate::BasicStartupComplete(int* exit_code) {
void ShellMainDelegate::PreSandboxStartup() {
std::string process_type =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessType);
if (ProcessNeedsResourceBundle(process_type))
InitializeResourceBundle();
diff --git a/extensions/shell/browser/default_shell_browser_main_delegate.cc b/extensions/shell/browser/default_shell_browser_main_delegate.cc
index eb86cc4..bbd237f 100644
--- a/extensions/shell/browser/default_shell_browser_main_delegate.cc
+++ b/extensions/shell/browser/default_shell_browser_main_delegate.cc
@@ -35,14 +35,13 @@ void DefaultShellBrowserMainDelegate::Start(
ExtensionSystem::Get(browser_context));
extension_system->Init();
- CommandLine::StringType path_list =
+ base::CommandLine::StringType path_list =
command_line->GetSwitchValueNative(switches::kLoadApps);
- base::StringTokenizerT<CommandLine::StringType,
- CommandLine::StringType::const_iterator>
+ base::StringTokenizerT<base::CommandLine::StringType,
+ base::CommandLine::StringType::const_iterator>
tokenizer(path_list, FILE_PATH_LITERAL(","));
-
std::string launch_id;
while (tokenizer.GetNext()) {
base::FilePath app_absolute_dir =
diff --git a/extensions/shell/browser/shell_browser_main_parts.cc b/extensions/shell/browser/shell_browser_main_parts.cc
index 8c02ccf..453474b 100644
--- a/extensions/shell/browser/shell_browser_main_parts.cc
+++ b/extensions/shell/browser/shell_browser_main_parts.cc
@@ -109,7 +109,7 @@ void ShellBrowserMainParts::PostMainMessageLoopStart() {
chromeos::NetworkHandler::Initialize();
network_controller_.reset(new ShellNetworkController(
- CommandLine::ForCurrentProcess()->GetSwitchValueNative(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueNative(
switches::kAppShellPreferredNetwork)));
#else
// Non-Chrome OS platforms are for developer convenience, so use a test IME.
@@ -185,7 +185,7 @@ void ShellBrowserMainParts::PreMainMessageLoopRun() {
browser_context_.get());
// Initialize OAuth2 support from command line.
- CommandLine* cmd = CommandLine::ForCurrentProcess();
+ base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
oauth2_token_service_.reset(new ShellOAuth2TokenService(
browser_context_.get(),
cmd->GetSwitchValueASCII(switches::kAppShellUser),
diff --git a/extensions/shell/browser/shell_content_browser_client.cc b/extensions/shell/browser/shell_content_browser_client.cc
index 2dd7c45..4637685 100644
--- a/extensions/shell/browser/shell_content_browser_client.cc
+++ b/extensions/shell/browser/shell_content_browser_client.cc
@@ -185,7 +185,7 @@ void ShellContentBrowserClient::SiteInstanceDeleting(
}
void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
- CommandLine* command_line,
+ base::CommandLine* command_line,
int child_process_id) {
std::string process_type =
command_line->GetSwitchValueASCII(::switches::kProcessType);
@@ -235,7 +235,7 @@ ShellBrowserMainParts* ShellContentBrowserClient::CreateShellBrowserMainParts(
}
void ShellContentBrowserClient::AppendRendererSwitches(
- CommandLine* command_line) {
+ base::CommandLine* command_line) {
// TODO(jamescook): Should we check here if the process is in the extension
// service process map, or can we assume all renderers are extension
// renderers?
@@ -247,9 +247,8 @@ void ShellContentBrowserClient::AppendRendererSwitches(
static const char* const kSwitchNames[] = {
::switches::kEnableNaClDebug,
};
- command_line->CopySwitchesFrom(*CommandLine::ForCurrentProcess(),
- kSwitchNames,
- arraysize(kSwitchNames));
+ command_line->CopySwitchesFrom(*base::CommandLine::ForCurrentProcess(),
+ kSwitchNames, arraysize(kSwitchNames));
#endif // !defined(DISABLE_NACL)
}