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

Unified Diff: chrome/browser/extensions/app_notify_channel_setup.cc

Issue 8633024: Switch end points to point to production (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_notify_channel_setup.cc
===================================================================
--- chrome/browser/extensions/app_notify_channel_setup.cc (revision 111255)
+++ chrome/browser/extensions/app_notify_channel_setup.cc (working copy)
@@ -38,7 +38,7 @@
static const char kAuthorizationHeaderFormat[] =
"Authorization: GoogleLogin auth=%s";
static const char kOAuth2IssueTokenURL[] =
- "https://www-googleapis-staging.sandbox.google.com/oauth2/v2/IssueToken";
+ "https://www.googleapis.com/oauth2/v2/IssueToken";
static const char kOAuth2IssueTokenBodyFormat[] =
"force=true"
"&response_type=token"
@@ -48,8 +48,8 @@
static const char kOAuth2IssueTokenScope[] =
"https://www.googleapis.com/auth/chromewebstore.notification";
static const char kCWSChannelServiceURL[] =
- "https://www-googleapis-staging.sandbox.google.com/chromewebstore/"
- "v1internal/channels/app_id/oauth_client_id";
+ "https://www.googleapis.com/chromewebstore/"
+ "v1.1/channels/id";
static const char* kRelevantGaiaServices[] = {
GaiaConstants::kCWSService,
GaiaConstants::kLSOService,
@@ -325,6 +325,18 @@
// static
GURL AppNotifyChannelSetup::GetCWSChannelServiceURL() {
+ CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kAppNotifyChannelServerURL)) {
+ std::string switch_value = command_line->GetSwitchValueASCII(
+ switches::kAppNotifyChannelServerURL);
+ GURL result(switch_value);
+ if (result.is_valid()) {
+ return result;
+ } else {
+ LOG(ERROR) << "Invalid value for " <<
+ switches::kAppNotifyChannelServerURL;
+ }
+ }
return GURL(kCWSChannelServiceURL);
}
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698