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

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

Issue 2758103003: Extensions: Move IsIncognitoEnabled to extensions/ from chrome/. (Closed)
Patch Set: Address review Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/keyword_extensions_delegate_impl.h" 5 #include "chrome/browser/autocomplete/keyword_extensions_delegate_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h" 10 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
11 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
12 #include "chrome/browser/extensions/extension_util.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "content/public/browser/notification_details.h" 13 #include "content/public/browser/notification_details.h"
15 #include "content/public/browser/notification_source.h" 14 #include "content/public/browser/notification_source.h"
16 #include "extensions/browser/extension_registry.h" 15 #include "extensions/browser/extension_registry.h"
16 #include "extensions/browser/extension_util.h"
17 #include "extensions/browser/notification_types.h" 17 #include "extensions/browser/notification_types.h"
18 18
19 namespace omnibox_api = extensions::api::omnibox; 19 namespace omnibox_api = extensions::api::omnibox;
20 20
21 int KeywordExtensionsDelegateImpl::global_input_uid_ = 0; 21 int KeywordExtensionsDelegateImpl::global_input_uid_ = 0;
22 22
23 KeywordExtensionsDelegateImpl::KeywordExtensionsDelegateImpl( 23 KeywordExtensionsDelegateImpl::KeywordExtensionsDelegateImpl(
24 Profile* profile, 24 Profile* profile,
25 KeywordProvider* provider) 25 KeywordProvider* provider)
26 : KeywordExtensionsDelegate(provider), 26 : KeywordExtensionsDelegate(provider),
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 211
212 default: 212 default:
213 NOTREACHED(); 213 NOTREACHED();
214 return; 214 return;
215 } 215 }
216 } 216 }
217 217
218 void KeywordExtensionsDelegateImpl::OnProviderUpdate(bool updated_matches) { 218 void KeywordExtensionsDelegateImpl::OnProviderUpdate(bool updated_matches) {
219 provider_->listener_->OnProviderUpdate(updated_matches); 219 provider_->listener_->OnProviderUpdate(updated_matches);
220 } 220 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698