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

Side by Side Diff: chrome/browser/web_resource/promo_resource_service.cc

Issue 6657003: Update a bunch of files to the new location of notification files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/web_resource/promo_resource_service.h" 5 #include "chrome/browser/web_resource/promo_resource_service.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/threading/thread_restrictions.h" 8 #include "base/threading/thread_restrictions.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/platform_util.h" 12 #include "chrome/browser/platform_util.h"
13 #include "chrome/browser/prefs/pref_service.h" 13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/sync/sync_ui_util.h" 15 #include "chrome/browser/sync/sync_ui_util.h"
16 #include "chrome/common/notification_service.h"
17 #include "chrome/common/notification_type.h"
18 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
19 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
18 #include "content/common/notification_service.h"
19 #include "content/common/notification_type.h"
20 20
21 namespace { 21 namespace {
22 22
23 // Delay on first fetch so we don't interfere with startup. 23 // Delay on first fetch so we don't interfere with startup.
24 static const int kStartResourceFetchDelay = 5000; 24 static const int kStartResourceFetchDelay = 5000;
25 25
26 // Delay between calls to update the cache (48 hours). 26 // Delay between calls to update the cache (48 hours).
27 static const int kCacheUpdateDelay = 48 * 60 * 60 * 1000; 27 static const int kCacheUpdateDelay = 48 * 60 * 60 * 1000;
28 28
29 // Users are randomly assigned to one of kNTPPromoGroupSize buckets, in order 29 // Users are randomly assigned to one of kNTPPromoGroupSize buckets, in order
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } else { 349 } else {
350 is_promo_build = true; 350 is_promo_build = true;
351 } 351 }
352 } 352 }
353 353
354 return !promo_closed && !is_synced && is_promo_build; 354 return !promo_closed && !is_synced && is_promo_build;
355 } 355 }
356 356
357 } // namespace PromoResourceServiceUtil 357 } // namespace PromoResourceServiceUtil
358 358
OLDNEW
« no previous file with comments | « chrome/browser/web_resource/gpu_blacklist_updater.cc ('k') | chrome/browser/web_resource/web_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698