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

Unified Diff: chrome/browser/ui/app_list/app_list_shower_views_unittest.cc

Issue 219383006: Never create an app list for an incognito profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 1 month 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/ui/app_list/app_list_shower_views.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_shower_views_unittest.cc
diff --git a/chrome/browser/ui/app_list/app_list_shower_views_unittest.cc b/chrome/browser/ui/app_list/app_list_shower_views_unittest.cc
index 856b5f2776ff994ec000f31dd964c8576040158f..1668f1fedb24ab8251fa0c84e59c3828c777cb84 100644
--- a/chrome/browser/ui/app_list/app_list_shower_views_unittest.cc
+++ b/chrome/browser/ui/app_list/app_list_shower_views_unittest.cc
@@ -18,6 +18,11 @@ class FakeAppListShower : public AppListShower {
explicit FakeAppListShower(AppListShowerDelegate* delegate)
: AppListShower(delegate), has_view_(false), visible_(false) {}
+ void ShowForProfile(Profile* requested_profile) {
+ CreateViewForProfile(requested_profile);
+ ShowForCurrentProfile();
+ }
+
// AppListShower:
void HandleViewBeingDestroyed() override {
AppListShower::HandleViewBeingDestroyed();
« no previous file with comments | « chrome/browser/ui/app_list/app_list_shower_views.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698