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

Unified Diff: content/browser/idbbindingutilities_browsertest.cc

Issue 8680016: A few more base::Bind migrations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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
Index: content/browser/idbbindingutilities_browsertest.cc
===================================================================
--- content/browser/idbbindingutilities_browsertest.cc (revision 111241)
+++ content/browser/idbbindingutilities_browsertest.cc (working copy)
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/bind.h"
#include "base/utf_string_conversions.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
@@ -92,7 +93,7 @@
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(this, &IDBKeyPathHelper::CreateUtilityProcess));
+ base::Bind(&IDBKeyPathHelper::CreateUtilityProcess, this));
return;
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -107,7 +108,7 @@
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(this, &IDBKeyPathHelper::DestroyUtilityProcess));
+ base::Bind(&IDBKeyPathHelper::DestroyUtilityProcess, this));
return;
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -136,8 +137,8 @@
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(this, &IDBKeyPathHelper::CheckValuesForKeyPath,
- id, serialized_values, key_path));
+ base::Bind(&IDBKeyPathHelper::CheckValuesForKeyPath, this, id,
+ serialized_values, key_path));
return;
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
@@ -153,8 +154,8 @@
if (!BrowserThread::CurrentlyOn(BrowserThread::IO)) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(this, &IDBKeyPathHelper::CheckInjectValue,
- key, value, key_path));
+ base::Bind(&IDBKeyPathHelper::CheckInjectValue, this, key, value,
+ key_path));
return;
}
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
« chrome/browser/external_tab_container_win.cc ('K') | « chrome/browser/external_tab_container_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698