diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-21 21:59:59 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-21 21:59:59 +0000 |
commit | 34b95db86d19643b6a40981572df1206572d5ae1 (patch) | |
tree | e58324a811a82483e4923e5416aad3c20552e84f /chrome/browser/extensions/extension_omnibox_api.cc | |
parent | d1029c57273282ad53b0291e43d63c40ee5ec841 (diff) | |
download | chromium_src-34b95db86d19643b6a40981572df1206572d5ae1.zip chromium_src-34b95db86d19643b6a40981572df1206572d5ae1.tar.gz chromium_src-34b95db86d19643b6a40981572df1206572d5ae1.tar.bz2 |
Fixed a bug where the extension omnibox API wouldn't work from an incognito
split mode context.
Also unmarked OmniboxApiTest.Basic as flaky, since it has no failures on the
flakiness dashboard.
BUG=52929,100927
TEST=no
Review URL: http://codereview.chromium.org/8342057
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_omnibox_api.cc')
-rw-r--r-- | chrome/browser/extensions/extension_omnibox_api.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/extension_omnibox_api.cc index 25e1bbd..524f65b 100644 --- a/chrome/browser/extensions/extension_omnibox_api.cc +++ b/chrome/browser/extensions/extension_omnibox_api.cc @@ -143,7 +143,7 @@ bool OmniboxSendSuggestionsFunction::RunImpl() { content::NotificationService::current()->Notify( chrome::NOTIFICATION_EXTENSION_OMNIBOX_SUGGESTIONS_READY, - content::Source<Profile>(profile_), + content::Source<Profile>(profile_->GetOriginalProfile()), content::Details<ExtensionOmniboxSuggestions>(&suggestions)); return true; @@ -174,7 +174,7 @@ bool OmniboxSetDefaultSuggestionFunction::RunImpl() { content::NotificationService::current()->Notify( chrome::NOTIFICATION_EXTENSION_OMNIBOX_DEFAULT_SUGGESTION_CHANGED, - content::Source<Profile>(profile_), + content::Source<Profile>(profile_->GetOriginalProfile()), content::NotificationService::NoDetails()); return true; |