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

Unified Diff: chrome/renderer/extensions/extension_dispatcher.cc

Issue 8113035: Remove RenderProcessHost::is_extension_process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 2 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 | « chrome/common/chrome_switches.cc ('k') | content/app/content_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/extension_dispatcher.cc
diff --git a/chrome/renderer/extensions/extension_dispatcher.cc b/chrome/renderer/extensions/extension_dispatcher.cc
index b8865dde4cd3b36a1d9c24b7ad41999af951bca5..aad2a404741c8e17909c4d71b4abae5ec5974fcf 100644
--- a/chrome/renderer/extensions/extension_dispatcher.cc
+++ b/chrome/renderer/extensions/extension_dispatcher.cc
@@ -41,10 +41,10 @@ using WebKit::WebString;
ExtensionDispatcher::ExtensionDispatcher()
: is_webkit_initialized_(false) {
- std::string type_str = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
- switches::kProcessType);
- is_extension_process_ = type_str == switches::kExtensionProcess ||
- CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess);
+ const CommandLine& command_line = *(CommandLine::ForCurrentProcess());
+ is_extension_process_ =
+ command_line.HasSwitch(switches::kExtensionProcess) ||
+ command_line.HasSwitch(switches::kSingleProcess);
if (is_extension_process_) {
RenderThread::current()->set_idle_notification_delay_in_s(
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | content/app/content_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698