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

Unified Diff: remoting/host/mac/me2me_preference_pane.mm

Issue 595063005: Save the client base JID for authentication in case it differs from the email (for accounts non-Goo… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add jsdoc Created 6 years, 3 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/host_status_observer.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/mac/me2me_preference_pane.mm
diff --git a/remoting/host/mac/me2me_preference_pane.mm b/remoting/host/mac/me2me_preference_pane.mm
index 56cc235e847ee5920dc79c30f9be82a242e3adef..d07fdb4da6fb0400fe905a0f66e8a8b3f7be514f 100644
--- a/remoting/host/mac/me2me_preference_pane.mm
+++ b/remoting/host/mac/me2me_preference_pane.mm
@@ -468,14 +468,18 @@ std::string JsonHostConfig::GetSerializedData() const {
std::string email;
if (config_.get()) {
- bool result = config_->GetString(remoting::kHostOwnerConfigPath, &email);
+ bool result =
+ config_->GetString(remoting::kHostOwnerEmailConfigPath, &email);
if (!result) {
- result = config_->GetString(remoting::kXmppLoginConfigPath, &email);
-
- // The config has already been checked by |IsConfigValid|.
+ result = config_->GetString(remoting::kHostOwnerConfigPath, &email);
if (!result) {
- [self showError];
- return;
+ result = config_->GetString(remoting::kXmppLoginConfigPath, &email);
+
+ // The config has already been checked by |IsConfigValid|.
+ if (!result) {
+ [self showError];
+ return;
+ }
}
}
}
« no previous file with comments | « remoting/host/host_status_observer.h ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698