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

Side by Side Diff: components/suggestions/suggestions_service.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/suggestions/suggestions_service.h" 5 #include "components/suggestions/suggestions_service.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/feature_list.h" 10 #include "base/feature_list.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/metrics/histogram_macros.h" 12 #include "base/metrics/histogram_macros.h"
13 #include "base/metrics/sparse_histogram.h" 13 #include "base/metrics/sparse_histogram.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/threading/thread_task_runner_handle.h" 17 #include "base/threading/thread_task_runner_handle.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "components/data_use_measurement/core/data_use_user_data.h" 19 #include "components/data_use_measurement/core/data_use_user_data.h"
20 #include "components/google/core/browser/google_util.h" 20 #include "components/google/core/browser/google_util.h"
21 #include "components/pref_registry/pref_registry_syncable.h" 21 #include "components/pref_registry/pref_registry_syncable.h"
22 #include "components/signin/core/browser/signin_manager_base.h" 22 #include "components/signin/core/browser/signin_manager_base.h"
23 #include "components/suggestions/blacklist_store.h" 23 #include "components/suggestions/blacklist_store.h"
24 #include "components/suggestions/image_manager.h" 24 #include "components/suggestions/image_manager.h"
25 #include "components/suggestions/suggestions_store.h" 25 #include "components/suggestions/suggestions_store.h"
26 #include "components/sync_driver/sync_service.h" 26 #include "components/sync/driver/sync_service.h"
27 #include "components/variations/net/variations_http_headers.h" 27 #include "components/variations/net/variations_http_headers.h"
28 #include "google_apis/gaia/gaia_constants.h" 28 #include "google_apis/gaia/gaia_constants.h"
29 #include "google_apis/gaia/oauth2_token_service.h" 29 #include "google_apis/gaia/oauth2_token_service.h"
30 #include "net/base/escape.h" 30 #include "net/base/escape.h"
31 #include "net/base/load_flags.h" 31 #include "net/base/load_flags.h"
32 #include "net/base/net_errors.h" 32 #include "net/base/net_errors.h"
33 #include "net/base/url_util.h" 33 #include "net/base/url_util.h"
34 #include "net/http/http_response_headers.h" 34 #include "net/http/http_response_headers.h"
35 #include "net/http/http_status_code.h" 35 #include "net/http/http_status_code.h"
36 #include "net/http/http_util.h" 36 #include "net/http/http_util.h"
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 scheduling_delay_ = TimeDelta::FromSeconds(kDefaultSchedulingDelaySec); 562 scheduling_delay_ = TimeDelta::FromSeconds(kDefaultSchedulingDelaySec);
563 } else { 563 } else {
564 TimeDelta candidate_delay = 564 TimeDelta candidate_delay =
565 scheduling_delay_ * kSchedulingBackoffMultiplier; 565 scheduling_delay_ * kSchedulingBackoffMultiplier;
566 if (candidate_delay < TimeDelta::FromSeconds(kSchedulingMaxDelaySec)) 566 if (candidate_delay < TimeDelta::FromSeconds(kSchedulingMaxDelaySec))
567 scheduling_delay_ = candidate_delay; 567 scheduling_delay_ = candidate_delay;
568 } 568 }
569 } 569 }
570 570
571 } // namespace suggestions 571 } // namespace suggestions
OLDNEW
« no previous file with comments | « components/suggestions/suggestions_service.h ('k') | components/suggestions/suggestions_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698