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

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..e064534bb72c6b30692960529ae7afbc22bd8bc5 100644
--- a/chrome/renderer/extensions/extension_dispatcher.cc
+++ b/chrome/renderer/extensions/extension_dispatcher.cc
@@ -41,9 +41,8 @@ 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 ||
+ is_extension_process_ =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kExtensionProcess);
CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess);
Mihai Parparita -not on Chrome 2011/10/04 22:24:14 This line is now a no-op, since you removed the ||
jochen (gone - plz use gerrit) 2011/10/05 07:43:46 Done.
if (is_extension_process_) {
« 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