summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/api/omnibox/omnibox_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/api/omnibox/omnibox_api.cc')
-rw-r--r--chrome/browser/extensions/api/omnibox/omnibox_api.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/browser/extensions/api/omnibox/omnibox_api.cc b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
index c15f619..e13bd07 100644
--- a/chrome/browser/extensions/api/omnibox/omnibox_api.cc
+++ b/chrome/browser/extensions/api/omnibox/omnibox_api.cc
@@ -289,7 +289,7 @@ bool OmniboxSendSuggestionsFunction::RunImpl() {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY,
- content::Source<Profile>(profile_->GetOriginalProfile()),
+ content::Source<Profile>(GetProfile()->GetOriginalProfile()),
content::Details<SendSuggestions::Params>(params.get()));
return true;
@@ -300,12 +300,11 @@ bool OmniboxSetDefaultSuggestionFunction::RunImpl() {
SetDefaultSuggestion::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
- if (SetOmniboxDefaultSuggestion(profile(),
- extension_id(),
- params->suggestion)) {
+ if (SetOmniboxDefaultSuggestion(
+ GetProfile(), extension_id(), params->suggestion)) {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED,
- content::Source<Profile>(profile_->GetOriginalProfile()),
+ content::Source<Profile>(GetProfile()->GetOriginalProfile()),
content::NotificationService::NoDetails());
}