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

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

Issue 164193005: Refactors the auto-launch logic and adds tests for it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 202da6e05f6db5ae83b1a72a17896681224aa11d..e4180884e0cf41998b8475bdbaea048ded92aeeb 100644
--- a/ui/app_list/test/app_list_test_view_delegate.cc
+++ b/ui/app_list/test/app_list_test_view_delegate.cc
@@ -94,7 +94,11 @@ void AppListTestViewDelegate::OpenSearchResult(SearchResult* result,
}
base::TimeDelta AppListTestViewDelegate::GetAutoLaunchTimeout() {
- return base::TimeDelta();
+ return auto_launch_timeout_;
+}
+
+void AppListTestViewDelegate::AutoLaunchCanceled() {
+ auto_launch_timeout_ = base::TimeDelta();
}
void AppListTestViewDelegate::Dismiss() {

Powered by Google App Engine
This is Rietveld 408576698