Chromium Code Reviews| 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())); |