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

Side by Side Diff: components/previews/core/previews_experiments.cc

Issue 2333003002: Changed previews component to be a layered component. (Closed)
Patch Set: Rebased on master Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/previews/previews_experiments.h" 5 #include "components/previews/core/previews_experiments.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "components/variations/variations_associated_data.h" 12 #include "components/variations/variations_associated_data.h"
13 13
14 namespace { 14 namespace {
15 15
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool EnableOfflinePreviewsForTesting() { 53 bool EnableOfflinePreviewsForTesting() {
54 std::map<std::string, std::string> params; 54 std::map<std::string, std::string> params;
55 params[kOfflinePagesSlowNetwork] = kExperimentEnabled; 55 params[kOfflinePagesSlowNetwork] = kExperimentEnabled;
56 return variations::AssociateVariationParams(kClientSidePreviewsFieldTrial, 56 return variations::AssociateVariationParams(kClientSidePreviewsFieldTrial,
57 kEnabled, params) && 57 kEnabled, params) &&
58 base::FieldTrialList::CreateFieldTrial(kClientSidePreviewsFieldTrial, 58 base::FieldTrialList::CreateFieldTrial(kClientSidePreviewsFieldTrial,
59 kEnabled); 59 kEnabled);
60 } 60 }
61 61
62 } // namespace previews 62 } // namespace previews
OLDNEW
« no previous file with comments | « components/previews/core/previews_experiments.h ('k') | components/previews/core/previews_experiments_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698