| Index: chrome/browser/search/search.cc
|
| diff --git a/chrome/browser/search/search.cc b/chrome/browser/search/search.cc
|
| index ad4bf66f81a9a2516efd9d68d27056b8c0b0a4e5..6621d5c4853529df5ca3b3e241100904aedea078 100644
|
| --- a/chrome/browser/search/search.cc
|
| +++ b/chrome/browser/search/search.cc
|
| @@ -66,7 +66,6 @@ const char kAltInstantURLPath[] = "search";
|
| const char kAltInstantURLQueryParams[] = "&qbp=1";
|
|
|
| const char kDisplaySearchButtonFlagName[] = "display_search_button";
|
| -const char kOriginChipFlagName[] = "origin_chip";
|
| #if !defined(OS_IOS) && !defined(OS_ANDROID)
|
| const char kEnableQueryExtractionFlagName[] = "query_extraction";
|
| #endif
|
| @@ -603,28 +602,6 @@ DisplaySearchButtonConditions GetDisplaySearchButtonConditions() {
|
| DISPLAY_SEARCH_BUTTON_NEVER;
|
| }
|
|
|
| -bool ShouldDisplayOriginChip() {
|
| - return GetOriginChipCondition() != ORIGIN_CHIP_DISABLED;
|
| -}
|
| -
|
| -OriginChipCondition GetOriginChipCondition() {
|
| - const CommandLine* cl = CommandLine::ForCurrentProcess();
|
| - if (cl->HasSwitch(switches::kDisableOriginChip))
|
| - return ORIGIN_CHIP_DISABLED;
|
| - if (cl->HasSwitch(switches::kEnableOriginChipAlways))
|
| - return ORIGIN_CHIP_ALWAYS;
|
| - if (cl->HasSwitch(switches::kEnableOriginChipOnSrp))
|
| - return ORIGIN_CHIP_ON_SRP;
|
| -
|
| - FieldTrialFlags flags;
|
| - if (!GetFieldTrialInfo(&flags))
|
| - return ORIGIN_CHIP_DISABLED;
|
| - uint64 value =
|
| - GetUInt64ValueForFlagWithDefault(kOriginChipFlagName, 0, flags);
|
| - return (value < ORIGIN_CHIP_NUM_VALUES) ?
|
| - static_cast<OriginChipCondition>(value) : ORIGIN_CHIP_DISABLED;
|
| -}
|
| -
|
| bool ShouldShowGoogleLocalNTP() {
|
| FieldTrialFlags flags;
|
| return !GetFieldTrialInfo(&flags) || GetBoolValueForFlagWithDefault(
|
|
|