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

Unified Diff: content/shell/shell_browser_context.cc

Issue 8556001: Convert NewRunnableFunction/NewRunnableMethod calls to use base::Bind(). (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/shell/shell_browser_context.cc
diff --git a/content/shell/shell_browser_context.cc b/content/shell/shell_browser_context.cc
index f45bbb6e0656188aeabe3f2106e8cb942db2e353..23960fbcb08017cab58119c294d0a6b201dc4100 100644
--- a/content/shell/shell_browser_context.cc
+++ b/content/shell/shell_browser_context.cc
@@ -4,6 +4,7 @@
#include "content/shell/shell_browser_context.h"
+#include "base/bind.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
@@ -211,9 +212,9 @@ ChromeBlobStorageContext* ShellBrowserContext::GetBlobStorageContext() {
blob_storage_context_ = new ChromeBlobStorageContext();
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- blob_storage_context_.get(),
- &ChromeBlobStorageContext::InitializeOnIOThread));
+ base::Bind(
+ &ChromeBlobStorageContext::InitializeOnIOThread,
+ blob_storage_context_.get()));
}
return blob_storage_context_;
}
@@ -250,9 +251,9 @@ void ShellBrowserContext::CreateQuotaManagerAndClients() {
scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy;
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- appcache_service_.get(),
+ base::Bind(
&ChromeAppCacheService::InitializeOnIOThread,
+ appcache_service_.get(),
IsOffTheRecord()
? FilePath() : GetPath().Append(FILE_PATH_LITERAL("AppCache")),
&GetResourceContext(),

Powered by Google App Engine
This is Rietveld 408576698