| Index: chrome/browser/resources/cryptotoken/gnubby.js
|
| diff --git a/chrome/browser/resources/cryptotoken/gnubby.js b/chrome/browser/resources/cryptotoken/gnubby.js
|
| index edd19b708da1473eb3fef11abb645f958db124bc..c8c03294b44ea9c8ed69613c1946aa9c3b2125fb 100644
|
| --- a/chrome/browser/resources/cryptotoken/gnubby.js
|
| +++ b/chrome/browser/resources/cryptotoken/gnubby.js
|
| @@ -523,7 +523,10 @@ Gnubby.prototype.sync = function(cb) {
|
| }
|
|
|
| function sendInitSentinel() {
|
| - var cid = Gnubby.BROADCAST_CID;
|
| + var cid = self.cid;
|
| + if (cid == Gnubby.defaultChannelId_(self.gnubbyInstance, self.which)) {
|
| + cid = Gnubby.BROADCAST_CID;
|
| + }
|
| var cmd = GnubbyDevice.CMD_INIT;
|
| self.dev.queueCommand(cid, cmd, nonce);
|
| }
|
| @@ -628,8 +631,7 @@ Gnubby.prototype.sync = function(cb) {
|
| completionAction = syncCompletionAction;
|
| }
|
|
|
| - if (Gnubby.gnubbies_.isSharedAccess(this.which) &&
|
| - this.cid == Gnubby.defaultChannelId_(this.gnubbyInstance, this.which)) {
|
| + if (Gnubby.gnubbies_.isSharedAccess(this.which)) {
|
| setInit();
|
| } else {
|
| setSync();
|
|
|