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

Unified Diff: remoting/host/dns_blackhole_checker.cc

Issue 11053024: Remove ChromotingHostContext from DnsBlackholeChecker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « remoting/host/dns_blackhole_checker.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/dns_blackhole_checker.cc
diff --git a/remoting/host/dns_blackhole_checker.cc b/remoting/host/dns_blackhole_checker.cc
index d057123ee58cefac14b99777cccea4db15e38681..1992a8f8626b9ece3d0f14ce0067522fc9a43580 100644
--- a/remoting/host/dns_blackhole_checker.cc
+++ b/remoting/host/dns_blackhole_checker.cc
@@ -6,7 +6,7 @@
#include "googleurl/src/gurl.h"
#include "net/url_request/url_fetcher.h"
-#include "remoting/host/chromoting_host_context.h"
+#include "net/url_request/url_request_context_getter.h"
namespace remoting {
@@ -18,9 +18,9 @@ const char kTalkGadgetUrl[] = ".talkgadget.google.com/talkgadget/"
"oauth/chrome-remote-desktop-host";
DnsBlackholeChecker::DnsBlackholeChecker(
- ChromotingHostContext* context,
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
std::string talkgadget_prefix)
- : context_(context),
+ : url_request_context_getter_(url_request_context_getter),
talkgadget_prefix_(talkgadget_prefix) {
}
@@ -59,7 +59,7 @@ void DnsBlackholeChecker::CheckForDnsBlackhole(
LOG(INFO) << "Verifying connection to " << talkgadget_url;
url_fetcher_.reset(net::URLFetcher::Create(GURL(talkgadget_url),
net::URLFetcher::GET, this));
- url_fetcher_->SetRequestContext(context_->url_request_context_getter());
+ url_fetcher_->SetRequestContext(url_request_context_getter_.get());
url_fetcher_->Start();
} else {
LOG(INFO) << "Pending connection check";
« no previous file with comments | « remoting/host/dns_blackhole_checker.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698