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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 8399028: base::Bind: Convert chrome/browser/profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win fox. Created 9 years, 2 months 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 | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc
index 79a4c92341902a3f73b1ca30ecdf602adc29d94d..58486eb61eb244f243dd60997673bb353c580b07 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/profiles/off_the_record_profile_impl.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/file_path.h"
@@ -112,8 +113,7 @@ void OffTheRecordProfileImpl::Init() {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(
- &NotifyOTRProfileCreatedOnIOThread, profile_, this));
+ base::Bind(&NotifyOTRProfileCreatedOnIOThread, profile_, this));
}
OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
@@ -128,15 +128,14 @@ OffTheRecordProfileImpl::~OffTheRecordProfileImpl() {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableFunction(&NotifyOTRProfileDestroyedOnIOThread, profile_,
- this));
+ base::Bind(&NotifyOTRProfileDestroyedOnIOThread, profile_, this));
// Clean up all DB files/directories
if (db_tracker_) {
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
- NewRunnableMethod(db_tracker_.get(),
- &webkit_database::DatabaseTracker::Shutdown));
+ base::Bind(&webkit_database::DatabaseTracker::Shutdown,
+ db_tracker_.get()));
}
BrowserList::RemoveObserver(this);
@@ -517,9 +516,8 @@ ChromeBlobStorageContext* OffTheRecordProfileImpl::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_;
}
@@ -617,13 +615,12 @@ void OffTheRecordProfileImpl::CreateQuotaManagerAndClients() {
appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy());
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- NewRunnableMethod(
- appcache_service_.get(),
- &ChromeAppCacheService::InitializeOnIOThread,
- IsOffTheRecord()
- ? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
- &GetResourceContext(),
- make_scoped_refptr(GetExtensionSpecialStoragePolicy())));
+ base::Bind(&ChromeAppCacheService::InitializeOnIOThread,
+ appcache_service_.get(),
+ IsOffTheRecord()
+ ? FilePath() : GetPath().Append(chrome::kAppCacheDirname),
+ &GetResourceContext(),
+ make_scoped_refptr(GetExtensionSpecialStoragePolicy())));
}
#if defined(OS_CHROMEOS)
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698