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

Unified Diff: chrome/browser/web_resource/promo_resource_service.cc

Issue 8931005: Remove debug code that accidentally got committed with promo_service changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_resource/promo_resource_service.cc
===================================================================
--- chrome/browser/web_resource/promo_resource_service.cc (revision 114215)
+++ chrome/browser/web_resource/promo_resource_service.cc (working copy)
@@ -30,8 +30,8 @@
static const int kStartResourceFetchDelay = 5000;
// Delay between calls to update the cache (48 hours), and 3 min in debug mode.
-static const int kCacheUpdateDelay = 1 * 60 * 1000;
-static const int kTestCacheUpdateDelay = 1 * 60 * 1000;
+static const int kCacheUpdateDelay = 48 * 60 * 60 * 1000;
+static const int kTestCacheUpdateDelay = 3 * 60 * 1000;
// The version of the service (used to expire the cache when upgrading Chrome
// to versions with different types of promos).
@@ -49,14 +49,11 @@
static const char kWebStoreExpireProperty[] = "tooltip";
const char* GetPromoResourceURL() {
-const char* kCaitPromoResourceServer =
- "http://caitkp-desktop.mon.corp.google.com/promo.js?";
std::string promo_server_url = CommandLine::ForCurrentProcess()->
GetSwitchValueASCII(switches::kPromoServerURL);
return promo_server_url.empty() ?
PromoResourceService::kDefaultPromoResourceServer :
- kCaitPromoResourceServer;
- //promo_server_url.c_str();
+ promo_server_url.c_str();
}
bool IsTest() {
@@ -132,7 +129,7 @@
PromoResourceService::PromoResourceService(Profile* profile)
: WebResourceService(profile->GetPrefs(),
GetPromoResourceURL(),
- false,//true, // append locale to URL
+ true, // append locale to URL
chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED,
prefs::kNTPPromoResourceCacheUpdate,
kStartResourceFetchDelay,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698