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

Side by Side Diff: chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc

Issue 2697723006: MD Settings: Fix subpage URLS for CrOS (Closed)
Patch Set: Created 3 years, 10 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 "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
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,
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
stevenjb 2017/02/15 20:41:23 Blame clang for the formatting ('git cl format').
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),
69 search_terms_data_(profile_) { 70 search_terms_data_(profile_) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_about_handler.cc » ('j') | chrome/browser/ui/chrome_pages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698