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

Side by Side Diff: components/google/core/browser/google_url_tracker.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (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
« no previous file with comments | « components/google/DEPS ('k') | components/google/core/browser/google_url_tracker_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/google/core/browser/google_url_tracker.h" 5 #include "components/google/core/browser/google_url_tracker.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/prefs/pref_service.h"
14 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
15 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
16 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
17 #include "components/data_use_measurement/core/data_use_user_data.h" 16 #include "components/data_use_measurement/core/data_use_user_data.h"
18 #include "components/google/core/browser/google_pref_names.h" 17 #include "components/google/core/browser/google_pref_names.h"
19 #include "components/google/core/browser/google_switches.h" 18 #include "components/google/core/browser/google_switches.h"
20 #include "components/google/core/browser/google_util.h" 19 #include "components/google/core/browser/google_util.h"
21 #include "components/pref_registry/pref_registry_syncable.h" 20 #include "components/pref_registry/pref_registry_syncable.h"
21 #include "components/prefs/pref_service.h"
22 #include "net/base/load_flags.h" 22 #include "net/base/load_flags.h"
23 #include "net/url_request/url_fetcher.h" 23 #include "net/url_request/url_fetcher.h"
24 #include "net/url_request/url_request_status.h" 24 #include "net/url_request/url_request_status.h"
25 25
26 26
27 const char GoogleURLTracker::kDefaultGoogleHomepage[] = 27 const char GoogleURLTracker::kDefaultGoogleHomepage[] =
28 "https://www.google.com/"; 28 "https://www.google.com/";
29 const char GoogleURLTracker::kSearchDomainCheckURL[] = 29 const char GoogleURLTracker::kSearchDomainCheckURL[] =
30 "https://www.google.com/searchdomaincheck?format=domain&type=chrome"; 30 "https://www.google.com/searchdomaincheck?format=domain&type=chrome";
31 31
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Also retry kMaxRetries times on network change errors. A network change can 184 // Also retry kMaxRetries times on network change errors. A network change can
185 // propagate through Chrome in various stages, so it's possible for this code 185 // propagate through Chrome in various stages, so it's possible for this code
186 // to be reached via OnNetworkChanged(), and then have the fetch we kick off 186 // to be reached via OnNetworkChanged(), and then have the fetch we kick off
187 // be canceled due to e.g. the DNS server changing at a later time. In general 187 // be canceled due to e.g. the DNS server changing at a later time. In general
188 // it's not possible to ensure that by the time we reach here any requests we 188 // it's not possible to ensure that by the time we reach here any requests we
189 // start won't be canceled in this fashion, so retrying is the best we can do. 189 // start won't be canceled in this fashion, so retrying is the best we can do.
190 fetcher_->SetAutomaticallyRetryOnNetworkChanges(kMaxRetries); 190 fetcher_->SetAutomaticallyRetryOnNetworkChanges(kMaxRetries);
191 191
192 fetcher_->Start(); 192 fetcher_->Start();
193 } 193 }
OLDNEW
« no previous file with comments | « components/google/DEPS ('k') | components/google/core/browser/google_url_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698