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

Unified Diff: chrome/browser/banners/app_banner_data_fetcher_browsertest.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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_mode_manager.cc ('k') | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/banners/app_banner_data_fetcher_browsertest.cc
diff --git a/chrome/browser/banners/app_banner_data_fetcher_browsertest.cc b/chrome/browser/banners/app_banner_data_fetcher_browsertest.cc
index d4b3996f60e4c676a09e1b0193020f72d4c35c07..9bcd807e804f1db0b5019f21cb7da2bc4c20c533 100644
--- a/chrome/browser/banners/app_banner_data_fetcher_browsertest.cc
+++ b/chrome/browser/banners/app_banner_data_fetcher_browsertest.cc
@@ -5,9 +5,11 @@
#include "chrome/browser/banners/app_banner_data_fetcher.h"
#include "base/command_line.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/banners/app_banner_data_fetcher_desktop.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
@@ -34,13 +36,13 @@ class TestObserver : public AppBannerDataFetcher::Observer {
void OnDecidedWhetherToShow(AppBannerDataFetcher* fetcher,
bool will_show) override {
- base::MessageLoop::current()->PostTask(FROM_HERE, quit_closure_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_closure_);
ASSERT_FALSE(will_show_.get());
will_show_.reset(new bool(will_show));
}
void OnFetcherDestroyed(AppBannerDataFetcher* fetcher) override {
- base::MessageLoop::current()->PostTask(FROM_HERE, quit_closure_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_closure_);
fetcher_ = nullptr;
}
@@ -66,7 +68,7 @@ class AppBannerDataFetcherBrowserTest : public InProcessBrowserTest,
bool HandleNonWebApp(const std::string& platform,
const GURL& url,
const std::string& id) override {
- base::MessageLoop::current()->PostTask(FROM_HERE, quit_closure_);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, quit_closure_);
non_web_platform_ = platform;
return false;
}
« no previous file with comments | « chrome/browser/background/background_mode_manager.cc ('k') | chrome/browser/browser_about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698