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

Unified Diff: content/child/child_thread.cc

Issue 456513002: Add base:: qualification to some CommandLine references in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: imerge Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | content/child/npapi/npobject_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index 7c6432af2452c81e8f4b7ad644380f4d5b3cc3dd..a9a2fb6a6831ed959d5c0f7575b5241ceb2008f9 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -193,12 +193,12 @@ void QuitMainThreadMessageLoop() {
} // namespace
ChildThread::Options::Options()
- : channel_name(CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ : channel_name(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessChannelID)),
use_mojo_channel(false) {}
ChildThread::Options::Options(bool mojo)
- : channel_name(CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ : channel_name(base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessChannelID)),
use_mojo_channel(mojo) {}
@@ -297,7 +297,8 @@ void ChildThread::Init(const Options& options) {
channel_->AddFilter(quota_message_filter_->GetFilter());
channel_->AddFilter(service_worker_message_filter_->GetFilter());
- if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) {
+ if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSingleProcess)) {
// In single process mode, browser-side tracing will cover the whole
// process including renderers.
channel_->AddFilter(new tracing::ChildTraceMessageFilter(
@@ -317,13 +318,13 @@ void ChildThread::Init(const Options& options) {
#if defined(OS_POSIX)
// Check that --process-type is specified so we don't do this in unit tests
// and single-process mode.
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kProcessType))
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kProcessType))
channel_->AddFilter(new SuicideOnChannelErrorFilter());
#endif
int connection_timeout = kConnectionTimeoutS;
std::string connection_override =
- CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kIPCConnectionTimeout);
if (!connection_override.empty()) {
int temp;
@@ -526,7 +527,7 @@ void ChildThread::OnDumpHandles() {
#if defined(OS_WIN)
scoped_refptr<HandleEnumerator> handle_enum(
new HandleEnumerator(
- CommandLine::ForCurrentProcess()->HasSwitch(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kAuditAllHandles)));
handle_enum->EnumerateHandles();
Send(new ChildProcessHostMsg_DumpHandlesDone);
« no previous file with comments | « content/browser/zygote_host/zygote_host_impl_linux.cc ('k') | content/child/npapi/npobject_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698