| 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,
|
|
|