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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 11226037: Incognito-allowed package apps produce duplicate items in context menu (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: unittest added Created 8 years, 2 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 | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 88080b2c56060d64adcd02f157bcd9549bd85083..f16bcbc6d5d82d2f237a5785afe6fbb3abf68cb9 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -135,6 +135,7 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
if (extension_service && extension_service->extensions_enabled()) {
extension_service->extension_prefs()->
ClearIncognitoSessionOnlyContentSettings();
+ extension_service->menu_manager()->RemoveAllIncognitoContextItems();
sail 2012/10/25 19:22:00 This needs a test (something that doesn't pass wit
Joe Thomas 2012/10/25 19:49:42 I already added a unit test for the new function t
sail 2012/10/25 19:56:14 Take a look at profile_browsertest.cc and profile_
}
ProfileDependencyManager::GetInstance()->DestroyProfileServices(this);
« no previous file with comments | « chrome/browser/extensions/menu_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698