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

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: fix win error 2 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
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/contents_view.h » ('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 dfe82f59460fa7c6dcd260d59ace7ecb962fc9a5..44644d429e422268af9e5783277838d1bcfd2d0d 100644
--- a/ui/app_list/test/app_list_test_view_delegate.cc
+++ b/ui/app_list/test/app_list_test_view_delegate.cc
@@ -95,7 +95,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() {
« no previous file with comments | « ui/app_list/test/app_list_test_view_delegate.h ('k') | ui/app_list/views/contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698