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

Unified Diff: chrome/browser/bookmarks/bookmark_html_writer.cc

Issue 2033753002: Remove use of deprecated MessageLoop methods in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 years, 7 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 | « chrome/browser/background/background_contents_service.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_html_writer.cc
diff --git a/chrome/browser/bookmarks/bookmark_html_writer.cc b/chrome/browser/bookmarks/bookmark_html_writer.cc
index efcf3654cb4d7c16db5133e1ff9b904a1f1fce17..c95e150b0f8b0a6b7ee183a3e1f7b4301914a978 100644
--- a/chrome/browser/bookmarks/bookmark_html_writer.cc
+++ b/chrome/browser/bookmarks/bookmark_html_writer.cc
@@ -14,10 +14,12 @@
#include "base/bind_helpers.h"
#include "base/callback.h"
#include "base/files/file.h"
+#include "base/location.h"
#include "base/macros.h"
-#include "base/message_loop/message_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
#include "base/values.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
@@ -422,7 +424,7 @@ void BookmarkFaviconFetcher::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
if (chrome::NOTIFICATION_PROFILE_DESTROYED == type && fetcher != NULL) {
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher);
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, fetcher);
fetcher = NULL;
}
}
@@ -450,7 +452,7 @@ void BookmarkFaviconFetcher::ExecuteWriter() {
profile_)),
path_, favicons_map_.release(), observer_)));
if (fetcher != NULL) {
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher);
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, fetcher);
fetcher = NULL;
}
}
« no previous file with comments | « chrome/browser/background/background_contents_service.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698