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

Unified Diff: ui/app_list/test/app_list_test_view_delegate.cc

Issue 305123002: Fix crash in the experimental app list StartPageView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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 | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/test/app_list_test_view_delegate.cc
diff --git a/ui/app_list/test/app_list_test_view_delegate.cc b/ui/app_list/test/app_list_test_view_delegate.cc
index 4052ea60160b06a1417c6168ef4bd0be200bba03..2fb382dc2846c52d9c3eeb208110bdb5a07f97f9 100644
--- a/ui/app_list/test/app_list_test_view_delegate.cc
+++ b/ui/app_list/test/app_list_test_view_delegate.cc
@@ -54,6 +54,7 @@ AppListTestViewDelegate::AppListTestViewDelegate()
: dismiss_count_(0),
toggle_speech_recognition_count_(0),
open_search_result_count_(0),
+ next_profile_app_count_(0),
test_signin_delegate_(new TestSigninDelegate),
model_(new AppListTestModel),
speech_ui_(SPEECH_RECOGNITION_OFF) {
@@ -78,6 +79,11 @@ bool AppListTestViewDelegate::ForceNativeDesktop() const {
return false;
}
+void AppListTestViewDelegate::SetProfileByPath(
+ const base::FilePath& profile_path) {
+ ReplaceTestModel(next_profile_app_count_);
+}
+
AppListModel* AppListTestViewDelegate::GetModel() {
return model_.get();
}
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/app_list_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698