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

Unified Diff: chrome/browser/local_discovery/wifi/credential_getter_win.cc

Issue 1127553002: [chrome/browser/local_discovery] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Build break : Dependency in components/wifi classes Created 5 years, 8 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/local_discovery/wifi/credential_getter_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/wifi/credential_getter_win.cc
diff --git a/chrome/browser/local_discovery/wifi/credential_getter_win.cc b/chrome/browser/local_discovery/wifi/credential_getter_win.cc
index 4efdd3ac97d4ef5e581124264371c834174bd811..2730fca37192f105adaabe9341bc02039d4b602e 100644
--- a/chrome/browser/local_discovery/wifi/credential_getter_win.cc
+++ b/chrome/browser/local_discovery/wifi/credential_getter_win.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/local_discovery/wifi/credential_getter_win.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/common/extensions/chrome_utility_extensions_messages.h"
#include "chrome/grit/generated_resources.h"
#include "content/public/browser/browser_thread.h"
@@ -21,7 +22,7 @@ void CredentialGetterWin::StartGetCredentials(
const std::string& network_guid,
const CredentialsCallback& callback) {
callback_ = callback;
- callback_runner_ = base::MessageLoopProxy::current();
+ callback_runner_ = base::ThreadTaskRunnerHandle::Get();
content::BrowserThread::PostTask(
content::BrowserThread::IO,
FROM_HERE,
@@ -31,7 +32,7 @@ void CredentialGetterWin::StartGetCredentials(
void CredentialGetterWin::StartOnIOThread(const std::string& network_guid) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
content::UtilityProcessHost* host = content::UtilityProcessHost::Create(
- this, base::MessageLoopProxy::current());
+ this, base::ThreadTaskRunnerHandle::Get());
host->SetName(l10n_util::GetStringUTF16(
IDS_UTILITY_PROCESS_WIFI_CREDENTIALS_GETTER_NAME));
host->ElevatePrivileges();
« no previous file with comments | « chrome/browser/local_discovery/wifi/credential_getter_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698