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

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

Issue 2528893003: [PhysicalWeb] Add physical_web namespace. (Closed)
Patch Set: Created 4 years 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ChromeAutocompleteProviderClient::GetKeywordExtensionsDelegate( 144 ChromeAutocompleteProviderClient::GetKeywordExtensionsDelegate(
145 KeywordProvider* keyword_provider) { 145 KeywordProvider* keyword_provider) {
146 #if BUILDFLAG(ENABLE_EXTENSIONS) 146 #if BUILDFLAG(ENABLE_EXTENSIONS)
147 return base::MakeUnique<KeywordExtensionsDelegateImpl>(profile_, 147 return base::MakeUnique<KeywordExtensionsDelegateImpl>(profile_,
148 keyword_provider); 148 keyword_provider);
149 #else 149 #else
150 return nullptr; 150 return nullptr;
151 #endif 151 #endif
152 } 152 }
153 153
154 PhysicalWebDataSource* 154 physical_web::PhysicalWebDataSource*
155 ChromeAutocompleteProviderClient::GetPhysicalWebDataSource() { 155 ChromeAutocompleteProviderClient::GetPhysicalWebDataSource() {
156 return nullptr; 156 return nullptr;
157 } 157 }
158 158
159 std::string ChromeAutocompleteProviderClient::GetAcceptLanguages() const { 159 std::string ChromeAutocompleteProviderClient::GetAcceptLanguages() const {
160 return profile_->GetPrefs()->GetString(prefs::kAcceptLanguages); 160 return profile_->GetPrefs()->GetString(prefs::kAcceptLanguages);
161 } 161 }
162 162
163 std::string 163 std::string
164 ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme() { 164 ChromeAutocompleteProviderClient::GetEmbedderRepresentationOfAboutScheme() {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 image_service->Prefetch(url); 250 image_service->Prefetch(url);
251 } 251 }
252 252
253 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady( 253 void ChromeAutocompleteProviderClient::OnAutocompleteControllerResultReady(
254 AutocompleteController* controller) { 254 AutocompleteController* controller) {
255 content::NotificationService::current()->Notify( 255 content::NotificationService::current()->Notify(
256 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY, 256 chrome::NOTIFICATION_AUTOCOMPLETE_CONTROLLER_RESULT_READY,
257 content::Source<AutocompleteController>(controller), 257 content::Source<AutocompleteController>(controller),
258 content::NotificationService::NoDetails()); 258 content::NotificationService::NoDetails());
259 } 259 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698