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,10 @@ |
for (ExtensionList::const_iterator app = extensions->begin(); |
app != extensions->end(); ++app) { |
if ((*app)->is_app() && (*app)->GetFullLaunchURL().is_valid()) { |
+ if (profile_->IsOffTheRecord() && |
+ !extension_service->CanLoadInIncognito((*app))) |
+ continue; |
+ |
extension_apps_.push_back( |
std::make_pair((*app)->name(), |
(*app)->GetFullLaunchURL().spec())); |