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

Unified Diff: chrome/browser/debugger/devtools_sanity_unittest.cc

Issue 8662047: base::Bind: Implement a 1-arity CancelableCallback and use this to implement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fixes. Created 9 years, 1 month 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 | « base/cancelable_callback_unittest.cc ('k') | chrome/browser/renderer_host/offline_resource_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/devtools_sanity_unittest.cc
diff --git a/chrome/browser/debugger/devtools_sanity_unittest.cc b/chrome/browser/debugger/devtools_sanity_unittest.cc
index 6fb89205258999be812e443cb12a3929575a5dbc..ad7f2e48ed44218897a0055bc94c59ac8414fd26 100644
--- a/chrome/browser/debugger/devtools_sanity_unittest.cc
+++ b/chrome/browser/debugger/devtools_sanity_unittest.cc
@@ -188,7 +188,7 @@ class DevToolsExtensionDebugTest : public DevToolsSanityTest,
content::NotificationRegistrar registrar;
registrar.Add(this, chrome::NOTIFICATION_EXTENSION_LOADED,
content::NotificationService::AllSources());
- base::CancelableCallback timeout(
+ base::CancelableClosure timeout(
base::Bind(&TimeoutCallback, "Extension load timed out."));
MessageLoop::current()->PostDelayedTask(
FROM_HERE, timeout.callback(), 4 * 1000);
@@ -211,7 +211,7 @@ class DevToolsExtensionDebugTest : public DevToolsSanityTest,
content::NotificationRegistrar registrar;
registrar.Add(this, chrome::NOTIFICATION_EXTENSION_HOST_DID_STOP_LOADING,
content::NotificationService::AllSources());
- base::CancelableCallback timeout(
+ base::CancelableClosure timeout(
base::Bind(&TimeoutCallback, "Extension host load timed out."));
MessageLoop::current()->PostDelayedTask(
FROM_HERE, timeout.callback(), 4 * 1000);
« no previous file with comments | « base/cancelable_callback_unittest.cc ('k') | chrome/browser/renderer_host/offline_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698