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

Unified Diff: chrome/browser/autocomplete/extension_app_provider.cc

Issue 7016005: Don't show suggestions in the Omnibox from the Extension App provider unless the app has Incognit... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/extension_app_provider.cc
===================================================================
--- chrome/browser/autocomplete/extension_app_provider.cc (revision 84698)
+++ chrome/browser/autocomplete/extension_app_provider.cc (working copy)
@@ -95,6 +95,14 @@
for (ExtensionList::const_iterator app = extensions->begin();
app != extensions->end(); ++app) {
if ((*app)->is_app() && (*app)->GetFullLaunchURL().is_valid()) {
+ // Incognito extensions must have incognito enabled and split mode set
Matt Perry 2011/05/11 23:55:27 I think we might want to apply this to packaged ap
+ // to show up in the omnibox as a suggestion.
+ if (profile_->IsOffTheRecord() &&
+ (!profile_->GetExtensionService()->
+ IsIncognitoEnabled((*app)->id()) ||
+ !(*app)->incognito_split_mode()))
+ continue;
+
extension_apps_.push_back(
std::make_pair((*app)->name(),
(*app)->GetFullLaunchURL().spec()));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698