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

Side by Side Diff: components/web_resource/notification_promo.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/web_resource/notification_promo.h" 5 #include "components/web_resource/notification_promo.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/prefs/pref_registry_simple.h"
15 #include "base/prefs/pref_service.h"
16 #include "base/rand_util.h" 14 #include "base/rand_util.h"
17 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
19 #include "base/sys_info.h" 17 #include "base/sys_info.h"
20 #include "base/threading/thread_restrictions.h" 18 #include "base/threading/thread_restrictions.h"
21 #include "base/time/time.h" 19 #include "base/time/time.h"
22 #include "base/values.h" 20 #include "base/values.h"
23 #include "build/build_config.h" 21 #include "build/build_config.h"
24 #include "components/pref_registry/pref_registry_syncable.h" 22 #include "components/pref_registry/pref_registry_syncable.h"
23 #include "components/prefs/pref_registry_simple.h"
24 #include "components/prefs/pref_service.h"
25 #include "components/version_info/version_info.h" 25 #include "components/version_info/version_info.h"
26 #include "components/web_resource/promo_resource_service.h" 26 #include "components/web_resource/promo_resource_service.h"
27 #include "net/base/url_util.h" 27 #include "net/base/url_util.h"
28 #include "ui/base/device_form_factor.h" 28 #include "ui/base/device_form_factor.h"
29 #include "url/gurl.h" 29 #include "url/gurl.h"
30 30
31 namespace web_resource { 31 namespace web_resource {
32 32
33 namespace { 33 namespace {
34 34
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 std::ceil(static_cast<float>(group_ - initial_segment_ + 1) / 467 std::ceil(static_cast<float>(group_ - initial_segment_ + 1) /
468 increment_) * 468 increment_) *
469 time_slice_; 469 time_slice_;
470 } 470 }
471 471
472 double NotificationPromo::EndTime() const { 472 double NotificationPromo::EndTime() const {
473 return end_; 473 return end_;
474 } 474 }
475 475
476 } // namespace web_resource 476 } // namespace web_resource
OLDNEW
« no previous file with comments | « components/web_resource/eula_accepted_notifier_unittest.cc ('k') | components/web_resource/promo_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698