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(), |