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

Unified Diff: remoting/webapp/host_controller.js

Issue 10243011: [Chromoting] Factor out common code for pin hashing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync. Created 8 years, 8 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/remoting.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/host_controller.js
diff --git a/remoting/webapp/host_controller.js b/remoting/webapp/host_controller.js
index 750212ed97f96147bb08e124fe3a2ebe48431ed2..6284a1e3e5470c742d794df9d17d0a7a41142ce4 100644
--- a/remoting/webapp/host_controller.js
+++ b/remoting/webapp/host_controller.js
@@ -152,7 +152,7 @@ remoting.HostController.prototype.start = function(hostPin, callback) {
if (success) {
var hostSecretHash =
- 'hmac:' + that.plugin_.getPinHash(newHostId, hostPin);
+ that.plugin_.getPinHash(newHostId, hostPin);
var hostConfig = JSON.stringify({
xmpp_login: remoting.oauth2.getCachedEmail(),
oauth_refresh_token: remoting.oauth2.exportRefreshToken(),
@@ -274,7 +274,7 @@ remoting.HostController.prototype.updatePin = function(newPin, callback) {
}
var hostId = config['host_id'];
var newConfig = JSON.stringify({
- host_secret_hash: 'hmac:' + that.plugin_.getPinHash(hostId, newPin)
+ host_secret_hash: that.plugin_.getPinHash(hostId, newPin)
});
that.plugin_.updateDaemonConfig(newConfig, callback);
};
« no previous file with comments | « remoting/remoting.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698