Chromium Code Reviews| Index: chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
| diff --git a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
| index 2dddf0202d814565ca65957012ea9fc3c383c288..58b68ad58c47e720e72257460e9237f80c39aff5 100644 |
| --- a/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
| +++ b/chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc |
| @@ -6,6 +6,7 @@ |
| #include <stddef.h> |
| +#include "base/feature_list.h" |
| #include "base/macros.h" |
| #include "base/memory/ptr_util.h" |
| #include "base/strings/utf_string_conversions.h" |
| @@ -22,6 +23,7 @@ |
| #include "chrome/browser/profiles/profile.h" |
| #include "chrome/browser/search_engines/template_url_service_factory.h" |
| #include "chrome/browser/sync/profile_sync_service_factory.h" |
| +#include "chrome/common/chrome_features.h" |
| #include "chrome/common/pref_names.h" |
| #include "chrome/common/url_constants.h" |
| #include "components/browser_sync/profile_sync_service.h" |
| @@ -44,7 +46,6 @@ const char* const kChromeSettingsSubPages[] = { |
| chrome::kAutofillSubPage, |
| chrome::kClearBrowserDataSubPage, |
| chrome::kContentSettingsSubPage, |
| - chrome::kContentSettingsExceptionsSubPage, |
| chrome::kImportDataSubPage, |
| chrome::kLanguageOptionsSubPage, |
| chrome::kPasswordManagerSubPage, |
| @@ -182,6 +183,14 @@ std::vector<base::string16> ChromeAutocompleteProviderClient::GetBuiltinURLs() { |
| builtins.push_back(settings + |
| base::ASCIIToUTF16(kChromeSettingsSubPages[i])); |
| } |
| + |
| + if (!base::FeatureList::IsEnabled(features::kMaterialDesignSettings)) { |
| + builtins.push_back( |
| + settings + |
| + base::ASCIIToUTF16( |
| + chrome::kDeprecatedOptionsContentSettingsExceptionsSubPage)); |
| + } |
| + |
|
Peter Kasting
2016/10/28 21:13:34
Nit: No blank line here
tommycli
2016/10/28 21:57:13
Done.
|
| #endif |
| return builtins; |