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

Side by Side Diff: chrome/browser/prerender/prerender_field_trial.cc

Issue 674273002: Cleanup: Remove unneeded chrome/common/pref_names.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 "chrome/browser/prerender/prerender_field_trial.h" 5 #include "chrome/browser/prerender/prerender_field_trial.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/string_split.h" 13 #include "base/strings/string_split.h"
14 #include "chrome/browser/net/prediction_options.h" 14 #include "chrome/browser/net/prediction_options.h"
15 #include "chrome/browser/predictors/autocomplete_action_predictor.h" 15 #include "chrome/browser/predictors/autocomplete_action_predictor.h"
16 #include "chrome/browser/prerender/prerender_manager.h" 16 #include "chrome/browser/prerender/prerender_manager.h"
17 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/sync/profile_sync_service.h" 18 #include "chrome/browser/sync/profile_sync_service.h"
19 #include "chrome/browser/sync/profile_sync_service_factory.h" 19 #include "chrome/browser/sync/profile_sync_service_factory.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "chrome/common/chrome_version_info.h" 21 #include "chrome/common/chrome_version_info.h"
22 #include "chrome/common/pref_names.h"
23 #include "components/metrics/metrics_service.h" 22 #include "components/metrics/metrics_service.h"
24 #include "components/variations/variations_associated_data.h" 23 #include "components/variations/variations_associated_data.h"
25 24
26 using base::FieldTrial; 25 using base::FieldTrial;
27 using base::FieldTrialList; 26 using base::FieldTrialList;
28 using base::StringToInt; 27 using base::StringToInt;
29 using std::string; 28 using std::string;
30 using std::vector; 29 using std::vector;
31 30
32 namespace prerender { 31 namespace prerender {
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 return GetLocalPredictorSpecValue(kDisableSessionStorageNamespaceMerging) != 485 return GetLocalPredictorSpecValue(kDisableSessionStorageNamespaceMerging) !=
487 kDisabledGroup; 486 kDisabledGroup;
488 } 487 }
489 488
490 bool IsPrerenderCookieStoreEnabled() { 489 bool IsPrerenderCookieStoreEnabled() {
491 return GetLocalPredictorSpecValue(kPrerenderCookieStore) != kDisabledGroup && 490 return GetLocalPredictorSpecValue(kPrerenderCookieStore) != kDisabledGroup &&
492 FieldTrialList::FindFullName(kPrerenderCookieStore) != kDisabledGroup; 491 FieldTrialList::FindFullName(kPrerenderCookieStore) != kDisabledGroup;
493 } 492 }
494 493
495 } // namespace prerender 494 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/predictors/resource_prefetch_common.cc ('k') | chrome/browser/prerender/prerender_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698