Index: chrome/browser/visitedlink/visitedlink_master.cc |
=================================================================== |
--- chrome/browser/visitedlink/visitedlink_master.cc (revision 116816) |
+++ chrome/browser/visitedlink/visitedlink_master.cc (working copy) |
@@ -191,7 +191,6 @@ |
history_service_override_ = NULL; |
suppress_rebuild_ = false; |
profile_ = profile; |
- sequence_token_ = BrowserThread::GetBlockingPool()->GetSequenceToken(); |
#ifndef NDEBUG |
posted_asynchronous_operation_ = false; |
@@ -243,12 +242,6 @@ |
return AddFingerprint(fingerprint, true); |
} |
-void VisitedLinkMaster::PostIOTask(const tracked_objects::Location& from_here, |
- const base::Closure& task) { |
- BrowserThread::GetBlockingPool()->PostSequencedWorkerTask(sequence_token_, |
- from_here, task); |
-} |
- |
void VisitedLinkMaster::AddURL(const GURL& url) { |
Hash index = TryToAddURL(url); |
if (!table_builder_ && index != null_hash_) { |
@@ -487,7 +480,10 @@ |
hash_table_, table_length_ * sizeof(Fingerprint)); |
// The hash table may have shrunk, so make sure this is the end. |
- PostIOTask(FROM_HERE, base::Bind(base::IgnoreResult(&TruncateFile), file_)); |
+ BrowserThread::PostTask( |
+ BrowserThread::FILE, |
+ FROM_HERE, |
+ base::Bind(base::IgnoreResult(&TruncateFile), file_)); |
return true; |
} |
@@ -677,7 +673,11 @@ |
} |
if (!file_) |
return; |
- PostIOTask(FROM_HERE, base::Bind(base::IgnoreResult(&fclose), file_)); |
+ |
+ BrowserThread::PostTask( |
+ BrowserThread::FILE, |
+ FROM_HERE, |
+ base::Bind(base::IgnoreResult(&fclose), file_)); |
} |
bool VisitedLinkMaster::ResizeTableIfNecessary() { |
@@ -860,7 +860,9 @@ |
#ifndef NDEBUG |
posted_asynchronous_operation_ = true; |
#endif |
- PostIOTask(FROM_HERE, |
+ |
+ BrowserThread::PostTask( |
+ BrowserThread::FILE, FROM_HERE, |
base::Bind(&AsyncWrite, file, offset, |
std::string(static_cast<const char*>(data), data_size))); |
} |