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

Side by Side Diff: remoting/host/setup/host_starter.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
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/setup/host_starter.h" 5 #include "remoting/host/setup/host_starter.h"
6 6
7 #include "base/bind.h"
7 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/location.h"
8 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
9 #include "base/values.h" 11 #include "base/values.h"
10 #include "google_apis/google_api_keys.h" 12 #include "google_apis/google_api_keys.h"
11 #include "remoting/host/pin_hash.h" 13 #include "remoting/host/pin_hash.h"
12 #include "remoting/host/setup/oauth_helper.h" 14 #include "remoting/host/setup/oauth_helper.h"
13 15
14 namespace { 16 namespace {
15 const int kMaxGetTokensRetries = 3; 17 const int kMaxGetTokensRetries = 3;
16 } // namespace 18 } // namespace
17 19
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 main_task_runner_->PostTask(FROM_HERE, base::Bind( 227 main_task_runner_->PostTask(FROM_HERE, base::Bind(
226 &HostStarter::OnHostUnregistered, weak_ptr_)); 228 &HostStarter::OnHostUnregistered, weak_ptr_));
227 return; 229 return;
228 } 230 }
229 CompletionCallback cb = on_done_; 231 CompletionCallback cb = on_done_;
230 on_done_.Reset(); 232 on_done_.Reset();
231 cb.Run(START_ERROR); 233 cb.Run(START_ERROR);
232 } 234 }
233 235
234 } // namespace remoting 236 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/setup/host_starter.h ('k') | remoting/host/setup/me2me_native_messaging_host_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698