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

Side by Side Diff: remoting/host/setup/oauth_client.cc

Issue 354693004: Switch to using URLRequestContextBuilder to create some URLRequestContexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/setup/oauth_client.h ('k') | remoting/host/setup/start_host.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/setup/oauth_client.h" 5 #include "remoting/host/setup/oauth_client.h"
6 6
7 #include "base/logging.h"
8
7 namespace { 9 namespace {
8 const int kMaxGaiaRetries = 3; 10 const int kMaxGaiaRetries = 3;
9 } // namespace 11 } // namespace
10 12
11 namespace remoting { 13 namespace remoting {
12 14
13 OAuthClient::OAuthClient( 15 OAuthClient::OAuthClient(
14 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) 16 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter)
15 : gaia_oauth_client_(url_request_context_getter) { 17 : gaia_oauth_client_(url_request_context_getter) {
16 } 18 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 CompletionCallback on_done) { 86 CompletionCallback on_done) {
85 this->oauth_client_info = oauth_client_info; 87 this->oauth_client_info = oauth_client_info;
86 this->auth_code = auth_code; 88 this->auth_code = auth_code;
87 this->on_done = on_done; 89 this->on_done = on_done;
88 } 90 }
89 91
90 OAuthClient::Request::~Request() { 92 OAuthClient::Request::~Request() {
91 } 93 }
92 94
93 } // namespace remoting 95 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/setup/oauth_client.h ('k') | remoting/host/setup/start_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698