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

Side by Side Diff: remoting/host/dns_blackhole_checker.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 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 unified diff | Download patch
« no previous file with comments | « net/url_request/url_fetcher_factory.h ('k') | remoting/host/setup/service_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/dns_blackhole_checker.h" 5 #include "remoting/host/dns_blackhole_checker.h"
6 6
7 #include "base/callback_helpers.h" 7 #include "base/callback_helpers.h"
8 #include "net/url_request/url_fetcher.h" 8 #include "net/url_request/url_fetcher.h"
9 #include "net/url_request/url_request_context_getter.h" 9 #include "net/url_request/url_request_context_getter.h"
10 #include "remoting/base/logging.h" 10 #include "remoting/base/logging.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 DCHECK(callback_.is_null()); 51 DCHECK(callback_.is_null());
52 callback_ = callback; 52 callback_ = callback;
53 std::string talkgadget_url("https://"); 53 std::string talkgadget_url("https://");
54 if (talkgadget_prefix_.empty()) { 54 if (talkgadget_prefix_.empty()) {
55 talkgadget_url += kDefaultHostTalkGadgetPrefix; 55 talkgadget_url += kDefaultHostTalkGadgetPrefix;
56 } else { 56 } else {
57 talkgadget_url += talkgadget_prefix_; 57 talkgadget_url += talkgadget_prefix_;
58 } 58 }
59 talkgadget_url += kTalkGadgetUrl; 59 talkgadget_url += kTalkGadgetUrl;
60 HOST_LOG << "Verifying connection to " << talkgadget_url; 60 HOST_LOG << "Verifying connection to " << talkgadget_url;
61 url_fetcher_.reset(net::URLFetcher::Create(GURL(talkgadget_url), 61 url_fetcher_ = net::URLFetcher::Create(GURL(talkgadget_url),
62 net::URLFetcher::GET, this)); 62 net::URLFetcher::GET, this);
63 url_fetcher_->SetRequestContext(url_request_context_getter_.get()); 63 url_fetcher_->SetRequestContext(url_request_context_getter_.get());
64 url_fetcher_->Start(); 64 url_fetcher_->Start();
65 } else { 65 } else {
66 HOST_LOG << "Pending connection check"; 66 HOST_LOG << "Pending connection check";
67 } 67 }
68 } 68 }
69 69
70 } // namespace remoting 70 } // namespace remoting
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_factory.h ('k') | remoting/host/setup/service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698