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

Unified Diff: ui/app_list/views/test/apps_grid_view_test_api.cc

Issue 298963004: app_list: Fix possible out of bounds index. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DCHECK -> CHECK 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/views/test/apps_grid_view_test_api.h ('k') | ui/views/view_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/test/apps_grid_view_test_api.cc
diff --git a/ui/app_list/views/test/apps_grid_view_test_api.cc b/ui/app_list/views/test/apps_grid_view_test_api.cc
index 5e425c384884f014fad91a104c696b8327309c97..6b95b17caa6e2bdbc2590dc16a79b1f38f89d029 100644
--- a/ui/app_list/views/test/apps_grid_view_test_api.cc
+++ b/ui/app_list/views/test/apps_grid_view_test_api.cc
@@ -36,5 +36,14 @@ void AppsGridViewTestApi::PressItemAt(int index) {
ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_RETURN, 0, false));
}
+void AppsGridViewTestApi::DisableSynchronousDrag() {
+#if defined(OS_WIN)
+ DCHECK(view_->synchronous_drag_ == NULL) << "DisableSynchronousDrag needs to "
+ "be called before "
+ "synchronous_drag_ is set up.";
+ view_->use_synchronous_drag_ = false;
+#endif
+}
+
} // namespace test
} // namespace app_list
« no previous file with comments | « ui/app_list/views/test/apps_grid_view_test_api.h ('k') | ui/views/view_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698