OLD | NEW |
---|---|
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 "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 5 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/feature_list.h" | 9 #include "base/feature_list.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 27 matching lines...) Expand all Loading... | |
38 #if BUILDFLAG(ENABLE_EXTENSIONS) | 38 #if BUILDFLAG(ENABLE_EXTENSIONS) |
39 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" | 39 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h" |
40 #endif | 40 #endif |
41 | 41 |
42 #if !defined(OS_ANDROID) | 42 #if !defined(OS_ANDROID) |
43 namespace { | 43 namespace { |
44 | 44 |
45 // This list should be kept in sync with chrome/common/url_constants.h. | 45 // This list should be kept in sync with chrome/common/url_constants.h. |
46 // Only include useful sub-pages, confirmation alerts are not useful. | 46 // Only include useful sub-pages, confirmation alerts are not useful. |
47 const char* const kChromeSettingsSubPages[] = { | 47 const char* const kChromeSettingsSubPages[] = { |
48 chrome::kAutofillSubPage, | 48 chrome::kAutofillSubPage, chrome::kClearBrowserDataSubPage, |
sky
2017/02/16 21:57:41
Make sure you run git cl format.
stevenjb
2017/02/16 22:46:34
I did. This is clang's fault.
| |
49 chrome::kClearBrowserDataSubPage, | 49 chrome::kContentSettingsSubPage, chrome::kLanguageOptionsSubPage, |
50 chrome::kContentSettingsSubPage, | 50 chrome::kPasswordManagerSubPage, chrome::kResetProfileSettingsSubPage, |
51 chrome::kImportDataSubPage, | 51 chrome::kSearchEnginesSubPage, chrome::kSyncSetupSubPage, |
52 chrome::kLanguageOptionsSubPage, | |
53 chrome::kPasswordManagerSubPage, | |
54 chrome::kResetProfileSettingsSubPage, | |
55 chrome::kSearchEnginesSubPage, | |
56 chrome::kSyncSetupSubPage, | |
57 #if defined(OS_CHROMEOS) | 52 #if defined(OS_CHROMEOS) |
58 chrome::kInternetOptionsSubPage, | 53 chrome::kAccessibilitySubPage, chrome::kBluetoothSubPage, |
54 chrome::kDateTimeSubPage, chrome::kDisplaySubPage, | |
55 chrome::kInternetSubPage, chrome::kPowerSubPage, | |
56 chrome::kStylusSubPage, | |
57 #else | |
58 chrome::kCreateProfileSubPage, chrome::kImportDataSubPage, | |
59 chrome::kManageProfileSubPage, | |
59 #endif | 60 #endif |
60 }; | 61 }; |
61 | 62 |
62 } // namespace | 63 } // namespace |
63 #endif // !defined(OS_ANDROID) | 64 #endif // !defined(OS_ANDROID) |
64 | 65 |
65 ChromeAutocompleteProviderClient::ChromeAutocompleteProviderClient( | 66 ChromeAutocompleteProviderClient::ChromeAutocompleteProviderClient( |
66 Profile* profile) | 67 Profile* profile) |
67 : profile_(profile), | 68 : profile_(profile), |
68 scheme_classifier_(profile), | 69 scheme_classifier_(profile), |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
251 image_service->Prefetch(url); | 252 image_service->Prefetch(url); |
252 } | 253 } |
253 | 254 |
254 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( | 255 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( |
255 AutocompleteController* controller) { | 256 AutocompleteController* controller) { |
256 content::NotificationService::current()->Notify( | 257 content::NotificationService::current()->Notify( |
257 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, | 258 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, |
258 content::Source<AutocompleteController>(controller), | 259 content::Source<AutocompleteController>(controller), |
259 content::NotificationService::NoDetails()); | 260 content::NotificationService::NoDetails()); |
260 } | 261 } |
OLD | NEW |