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

Unified Diff: chrome/browser/user_style_sheet_watcher.cc

Issue 8603007: More base::Bind migrations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review tweak, rebase 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: chrome/browser/user_style_sheet_watcher.cc
===================================================================
--- chrome/browser/user_style_sheet_watcher.cc (revision 111186)
+++ chrome/browser/user_style_sheet_watcher.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/user_style_sheet_watcher.h"
#include "base/base64.h"
+#include "base/bind.h"
#include "base/file_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h"
@@ -117,8 +118,8 @@
}
}
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
- NewRunnableMethod(this, &UserStyleSheetLoader::SetStyleSheet,
- style_sheet_url));
+ base::Bind(&UserStyleSheetLoader::SetStyleSheet, this,
+ style_sheet_url));
}
void UserStyleSheetLoader::SetStyleSheet(const GURL& url) {
@@ -148,7 +149,7 @@
// Make sure we run on the file thread.
if (!BrowserThread::CurrentlyOn(BrowserThread::FILE)) {
BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(this, &UserStyleSheetWatcher::Init));
+ base::Bind(&UserStyleSheetWatcher::Init, this));
return;
}
« no previous file with comments | « chrome/browser/password_manager/password_store_win.cc ('k') | chrome/default_plugin/plugin_install_job_monitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698