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

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

Issue 2808413003: Omnibox - Reduce Clipboard URL Suggestions to 1 Hour (Closed)
Patch Set: cleanup field trial.h Created 3 years, 8 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 | « no previous file | components/open_from_clipboard/BUILD.gn » ('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 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 // (no "?"). 419 // (no "?").
420 static std::string ZeroSuggestRedirectToChromeServerAddress(); 420 static std::string ZeroSuggestRedirectToChromeServerAddress();
421 421
422 // Returns a string representing the parameters that are sent to the 422 // Returns a string representing the parameters that are sent to the
423 // alternative service providing zero suggestions. The returned value is 423 // alternative service providing zero suggestions. The returned value is
424 // properly escaped. It can be appended to the string representaiton of a 424 // properly escaped. It can be appended to the string representaiton of a
425 // request URL. 425 // request URL.
426 static std::string ZeroSuggestRedirectToChromeAdditionalFields(); 426 static std::string ZeroSuggestRedirectToChromeAdditionalFields();
427 427
428 // --------------------------------------------------------- 428 // ---------------------------------------------------------
429 // Clipboard URL suggestions:
430
431 // One parameter for the omnibox field trial that doesn't live in this file;
Peter Kasting 2017/04/12 20:02:30 Nit: Remove "that"
Mark P 2017/04/12 21:56:59 Done.
432 // instead it lives in
433 // components/open_from_clipboard/clipboard_recent_content.cc.
434 // This is because that component cannot include this component, else there
435 // would be a circular dependency. Please see ClipboardRecentContent::
436 // MaximumAgeOfClipboard() for the usage of that parameter, named
437 // "ClipboardURLMaximumAge".
Peter Kasting 2017/04/12 20:02:30 Nit: Name the parameter at the beginning of the co
Mark P 2017/04/12 21:56:59 Reorganized and rewrote. Take a gander.
438
439 // ---------------------------------------------------------
429 // Exposed publicly for the sake of unittests. 440 // Exposed publicly for the sake of unittests.
430 static const char kBundledExperimentFieldTrialName[]; 441 static const char kBundledExperimentFieldTrialName[];
431 // Rule names used by the bundled experiment. 442 // Rule names used by the bundled experiment.
432 static const char kDisableProvidersRule[]; 443 static const char kDisableProvidersRule[];
433 static const char kShortcutsScoringMaxRelevanceRule[]; 444 static const char kShortcutsScoringMaxRelevanceRule[];
434 static const char kSearchHistoryRule[]; 445 static const char kSearchHistoryRule[];
435 static const char kDemoteByTypeRule[]; 446 static const char kDemoteByTypeRule[];
436 static const char kHQPBookmarkValueRule[]; 447 static const char kHQPBookmarkValueRule[];
437 static const char kHQPTypedValueRule[]; 448 static const char kHQPTypedValueRule[];
438 static const char kHQPDiscountFrecencyWhenFewVisitsRule[]; 449 static const char kHQPDiscountFrecencyWhenFewVisitsRule[];
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 // prioritize different wildcard contexts, see the implementation. How to 519 // prioritize different wildcard contexts, see the implementation. How to
509 // interpret the value is left to the caller; this is rule-dependent. 520 // interpret the value is left to the caller; this is rule-dependent.
510 static std::string GetValueForRuleInContext( 521 static std::string GetValueForRuleInContext(
511 const std::string& rule, 522 const std::string& rule,
512 metrics::OmniboxEventProto::PageClassification page_classification); 523 metrics::OmniboxEventProto::PageClassification page_classification);
513 524
514 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial); 525 DISALLOW_IMPLICIT_CONSTRUCTORS(OmniboxFieldTrial);
515 }; 526 };
516 527
517 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_ 528 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | components/open_from_clipboard/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698