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

Unified Diff: components/offline_pages/offline_page_metadata_store_impl.cc

Issue 1511483004: [Offline pages] Remove references to MessageLoop from components/offline_pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test-refactoring
Patch Set: Created 5 years 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: components/offline_pages/offline_page_metadata_store_impl.cc
diff --git a/components/offline_pages/offline_page_metadata_store_impl.cc b/components/offline_pages/offline_page_metadata_store_impl.cc
index d1b9ce8b1dc59099a9f037b6d54dff814a54b5f1..ee2fb85bd37c5f0a4ef082caa3bba3d2c4376132 100644
--- a/components/offline_pages/offline_page_metadata_store_impl.cc
+++ b/components/offline_pages/offline_page_metadata_store_impl.cc
@@ -10,7 +10,6 @@
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/location.h"
-#include "base/message_loop/message_loop.h"
#include "base/metrics/histogram_macros.h"
#include "base/sequenced_task_runner.h"
#include "base/strings/string_number_conversions.h"
@@ -216,8 +215,8 @@ void OfflinePageMetadataStoreImpl::UpdateEntries(
// Callback is invoked through message loop to avoid improper retry and
// simplify testing.
DVLOG(1) << "Offline pages database not available in UpdateEntries.";
- base::MessageLoop::current()->PostTask(FROM_HERE,
- base::Bind(callback, false));
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE,
jianli 2015/12/08 23:25:25 nit: include base/thread_task_runner_handle.h
fgorski 2015/12/08 23:39:14 It is actually already there, but it was not used
+ base::Bind(callback, false));
return;
}

Powered by Google App Engine
This is Rietveld 408576698