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

Unified Diff: chrome/browser/extensions/extension_omnibox_api.cc

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_omnibox_api.cc
diff --git a/chrome/browser/extensions/extension_omnibox_api.cc b/chrome/browser/extensions/extension_omnibox_api.cc
index 89ed86c0833edc707351444234c28fcb23d6dcb3..26c91bb8f437942c401405a021478625d2b9708c 100644
--- a/chrome/browser/extensions/extension_omnibox_api.cc
+++ b/chrome/browser/extensions/extension_omnibox_api.cc
@@ -36,8 +36,7 @@ const char kDescriptionStylesOffset[] = "offset";
void ExtensionOmniboxEventRouter::OnInputStarted(
Profile* profile, const std::string& extension_id) {
profile->GetExtensionMessageService()->DispatchEventToExtension(
- extension_id, events::kOnInputStarted, "[]", profile->IsOffTheRecord(),
- GURL());
+ extension_id, events::kOnInputStarted, "[]", profile, GURL());
}
// static
@@ -56,8 +55,7 @@ bool ExtensionOmniboxEventRouter::OnInputChanged(
base::JSONWriter::Write(&args, false, &json_args);
profile->GetExtensionMessageService()->DispatchEventToExtension(
- extension_id, events::kOnInputChanged, json_args,
- profile->IsOffTheRecord(), GURL());
+ extension_id, events::kOnInputChanged, json_args, profile, GURL());
return true;
}
@@ -73,8 +71,7 @@ void ExtensionOmniboxEventRouter::OnInputEntered(
base::JSONWriter::Write(&args, false, &json_args);
profile->GetExtensionMessageService()->DispatchEventToExtension(
- extension_id, events::kOnInputEntered, json_args,
- profile->IsOffTheRecord(), GURL());
+ extension_id, events::kOnInputEntered, json_args, profile, GURL());
NotificationService::current()->Notify(
NotificationType::EXTENSION_OMNIBOX_INPUT_ENTERED,
@@ -85,8 +82,7 @@ void ExtensionOmniboxEventRouter::OnInputEntered(
void ExtensionOmniboxEventRouter::OnInputCancelled(
Profile* profile, const std::string& extension_id) {
profile->GetExtensionMessageService()->DispatchEventToExtension(
- extension_id, events::kOnInputCancelled, "[]", profile->IsOffTheRecord(),
- GURL());
+ extension_id, events::kOnInputCancelled, "[]", profile, GURL());
}
bool OmniboxSendSuggestionsFunction::RunImpl() {
« no previous file with comments | « chrome/browser/extensions/extension_messages_apitest.cc ('k') | chrome/browser/extensions/extension_popup_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698