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

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

Issue 10332187: Properly handle accounts that don't have GMail. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/gaia_oauth_client.cc ('k') | remoting/host/signaling_connector.h » ('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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 config_watcher_.reset(new base::files::FilePathWatcher()); 182 config_watcher_.reset(new base::files::FilePathWatcher());
183 if (!config_watcher_->Watch(host_config_path_, delegate)) { 183 if (!config_watcher_->Watch(host_config_path_, delegate)) {
184 LOG(ERROR) << "Couldn't watch file " << host_config_path_.value(); 184 LOG(ERROR) << "Couldn't watch file " << host_config_path_.value();
185 } 185 }
186 #endif 186 #endif
187 } 187 }
188 188
189 void CreateAuthenticatorFactory() { 189 void CreateAuthenticatorFactory() {
190 scoped_ptr<protocol::AuthenticatorFactory> factory( 190 scoped_ptr<protocol::AuthenticatorFactory> factory(
191 new protocol::Me2MeHostAuthenticatorFactory( 191 new protocol::Me2MeHostAuthenticatorFactory(
192 xmpp_login_, key_pair_.GenerateCertificate(), 192 key_pair_.GenerateCertificate(),
193 *key_pair_.private_key(), host_secret_hash_)); 193 *key_pair_.private_key(), host_secret_hash_));
194 host_->SetAuthenticatorFactory(factory.Pass()); 194 host_->SetAuthenticatorFactory(factory.Pass());
195 } 195 }
196 196
197 int Run() { 197 int Run() {
198 if (!LoadConfig()) { 198 if (!LoadConfig()) {
199 return kInvalidHostConfigurationExitCode; 199 return kInvalidHostConfigurationExitCode;
200 } 200 }
201 201
202 #if defined(OS_MACOSX) || defined(OS_WIN) 202 #if defined(OS_MACOSX) || defined(OS_WIN)
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 info.dwSize = sizeof(info); 560 info.dwSize = sizeof(info);
561 info.dwICC = ICC_STANDARD_CLASSES; 561 info.dwICC = ICC_STANDARD_CLASSES;
562 InitCommonControlsEx(&info); 562 InitCommonControlsEx(&info);
563 563
564 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting 564 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting
565 // the command line from GetCommandLineW(), so we can safely pass NULL here. 565 // the command line from GetCommandLineW(), so we can safely pass NULL here.
566 return main(0, NULL); 566 return main(0, NULL);
567 } 567 }
568 568
569 #endif // defined(OS_WIN) 569 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/gaia_oauth_client.cc ('k') | remoting/host/signaling_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698