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

Side by Side Diff: components/omnibox/browser/omnibox_field_trial.cc

Issue 2721993002: Omnibox - Make Clipboard Provider Enabled via an Experimental Feature (Closed)
Patch Set: rebase Created 3 years, 9 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/omnibox/browser/omnibox_field_trial.h" 5 #include "components/omnibox/browser/omnibox_field_trial.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 24 matching lines...) Expand all
35 // Finch experiment arm which sends an experiment ID to GWS which triggers 35 // Finch experiment arm which sends an experiment ID to GWS which triggers
36 // serving the new types. 36 // serving the new types.
37 const base::Feature kNewOmniboxAnswerTypes{"NewOmniboxAnswerTypes", 37 const base::Feature kNewOmniboxAnswerTypes{"NewOmniboxAnswerTypes",
38 base::FEATURE_DISABLED_BY_DEFAULT}; 38 base::FEATURE_DISABLED_BY_DEFAULT};
39 39
40 // Feature used to enable the transmission of entity suggestions from GWS 40 // Feature used to enable the transmission of entity suggestions from GWS
41 // to this client. 41 // to this client.
42 const base::Feature kOmniboxEntitySuggestions{ 42 const base::Feature kOmniboxEntitySuggestions{
43 "OmniboxEntitySuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; 43 "OmniboxEntitySuggestions", base::FEATURE_DISABLED_BY_DEFAULT};
44 44
45 // Feature used to enable clipboard provider, which provides the user with
46 // suggestions of the URL in the user's clipboard (if any) upon omnibox focus.
47 const base::Feature kEnableClipboardProvider {
48 "OmniboxEnableClipboardProvider",
49 #if defined(OS_IOS)
50 base::FEATURE_ENABLED_BY_DEFAULT
51 #else
52 base::FEATURE_DISABLED_BY_DEFAULT
53 #endif
54 };
55
45 } // namespace omnibox 56 } // namespace omnibox
46 57
47 namespace { 58 namespace {
48 59
49 typedef std::map<std::string, std::string> VariationParams; 60 typedef std::map<std::string, std::string> VariationParams;
50 typedef HUPScoringParams::ScoreBuckets ScoreBuckets; 61 typedef HUPScoringParams::ScoreBuckets ScoreBuckets;
51 62
52 // Field trial names. 63 // Field trial names.
53 const char kStopTimerFieldTrialName[] = "OmniboxStopTimer"; 64 const char kStopTimerFieldTrialName[] = "OmniboxStopTimer";
54 65
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 if (it != params.end()) 762 if (it != params.end())
752 return it->second; 763 return it->second;
753 // Fall back to the global instant extended context. 764 // Fall back to the global instant extended context.
754 it = params.find(rule + ":" + page_classification_str + ":*"); 765 it = params.find(rule + ":" + page_classification_str + ":*");
755 if (it != params.end()) 766 if (it != params.end())
756 return it->second; 767 return it->second;
757 // Look up rule in the global context. 768 // Look up rule in the global context.
758 it = params.find(rule + ":*:*"); 769 it = params.find(rule + ":*:*");
759 return (it != params.end()) ? it->second : std::string(); 770 return (it != params.end()) ? it->second : std::string();
760 } 771 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/omnibox_field_trial.h ('k') | ios/chrome/browser/autocomplete/autocomplete_classifier_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698