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

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: add profile change tests 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
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 ab712bfadbd1ea2224b1f6bd8701ad77da792a66..2025242a9596f88236e174d6d47d61f4d138f13f 100644
--- a/ui/app_list/test/app_list_test_view_delegate.cc
+++ b/ui/app_list/test/app_list_test_view_delegate.cc
@@ -53,6 +53,7 @@ class TestSigninDelegate : public SigninDelegate {
AppListTestViewDelegate::AppListTestViewDelegate()
: dismiss_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) {
@@ -71,6 +72,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();
}

Powered by Google App Engine
This is Rietveld 408576698