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

Unified Diff: chrome/browser/jumplist.cc

Issue 345037: Fifth patch in getting rid of caching MessageLoop pointers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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: chrome/browser/jumplist.cc
===================================================================
--- chrome/browser/jumplist.cc (revision 30691)
+++ chrome/browser/jumplist.cc (working copy)
@@ -22,7 +22,7 @@
#include "base/string_util.h"
#include "base/thread.h"
#include "base/win_util.h"
-#include "chrome/browser/browser_process.h"
+#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/favicon_service.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/history/page_usage_data.h"
@@ -732,12 +732,10 @@
// Finished Loading all fav icons needed by the application JumpList.
// We create a JumpListUpdateTask that creates icon files, and we post it to
// the file thread.
- Task* icon_task = new JumpListUpdateTask(icon_dir_,
- most_visited_pages_,
- recently_closed_pages_);
- MessageLoop* file_loop = g_browser_process->file_thread()->message_loop();
- if (file_loop)
- file_loop->PostTask(FROM_HERE, icon_task);
+ ChromeThread::PostTask(
+ ChromeThread::FILE, FROM_HERE,
+ new JumpListUpdateTask(
+ icon_dir_, most_visited_pages_, recently_closed_pages_));
// Delete all items in these lists since we don't need these lists any longer.
most_visited_pages_.clear();

Powered by Google App Engine
This is Rietveld 408576698