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

Unified Diff: google_apis/google_api_keys.cc

Issue 19925003: WIP - command line experiment Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | « google_apis/gaia/gaia_urls.cc ('k') | gpu/command_buffer/service/gpu_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: google_apis/google_api_keys.cc
diff --git a/google_apis/google_api_keys.cc b/google_apis/google_api_keys.cc
index fc4b54735b44042eb79c7845028b37020491ac63..4a530dc0099122e1d1709562d4408b1711c10b8b 100644
--- a/google_apis/google_api_keys.cc
+++ b/google_apis/google_api_keys.cc
@@ -185,7 +185,8 @@ class APIKeyCache {
<< " with value " << key_value << " from environment variable.";
}
- if (command_line_switch && command_line->HasSwitch(command_line_switch)) {
+ if (command_line_switch &&
+ command_line->HasStringSwitch(command_line_switch)) {
key_value = command_line->GetSwitchValueASCII(command_line_switch);
LOG(INFO) << "Overriding API key " << environment_variable_name
<< " with value " << key_value << " from command-line switch.";
« no previous file with comments | « google_apis/gaia/gaia_urls.cc ('k') | gpu/command_buffer/service/gpu_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698