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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 15685008: Show a 'remember me' checkbox in the web-app when connecting to a host that supports pairing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved PIN dialog layout. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 993e887f2b17a6ce40b41a9d3a7ad94023c35c3e..86442075ea689f64ab844d88ea6a0492bd31334e 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -506,19 +506,22 @@ void ChromotingInstance::SetCapabilities(const std::string& capabilities) {
}
void ChromotingInstance::FetchSecretFromDialog(
- const protocol::SecretFetchedCallback& secret_fetched_callback) {
+ const protocol::SecretFetchedCallback& secret_fetched_callback,
+ bool pairing_supported) {
// Once the Session object calls this function, it won't continue the
// authentication until the callback is called (or connection is canceled).
// So, it's impossible to reach this with a callback already registered.
DCHECK(secret_fetched_callback_.is_null());
secret_fetched_callback_ = secret_fetched_callback;
scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
+ data->SetBoolean("pairingSupported", pairing_supported);
PostChromotingMessage("fetchPin", data.Pass());
}
void ChromotingInstance::FetchSecretFromString(
const std::string& shared_secret,
- const protocol::SecretFetchedCallback& secret_fetched_callback) {
+ const protocol::SecretFetchedCallback& secret_fetched_callback,
+ bool pairing_supported) {
secret_fetched_callback.Run(shared_secret);
}

Powered by Google App Engine
This is Rietveld 408576698