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

Unified Diff: chrome/browser/chrome_plugin_host.cc

Issue 18248: CommandLine API rework (Closed)
Patch Set: fixes Created 11 years, 11 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/browser/browsing_instance.cc ('k') | chrome/browser/debugger/debugger_contents.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_plugin_host.cc
diff --git a/chrome/browser/chrome_plugin_host.cc b/chrome/browser/chrome_plugin_host.cc
index 55f1dd127e809d69f143a6b754854af9e22aac70..f501764c210670115b052ca9cb74a8c44f76fa73 100644
--- a/chrome/browser/chrome_plugin_host.cc
+++ b/chrome/browser/chrome_plugin_host.cc
@@ -640,8 +640,8 @@ CPProcessType STDCALL CPB_GetProcessType(CPID id) {
}
CPError STDCALL CPB_SendMessage(CPID id, const void *data, uint32 data_len) {
- CommandLine cmd;
- if (cmd.HasSwitch(switches::kGearsInRenderer)) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kGearsInRenderer)) {
ChromePluginLib* plugin = ChromePluginLib::FromCPID(id);
CHECK(plugin);
« no previous file with comments | « chrome/browser/browsing_instance.cc ('k') | chrome/browser/debugger/debugger_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698