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

Side by Side Diff: remoting/webapp/crd/js/me2me_connect_flow.js

Issue 1004513002: Eliminated named constants for instances of remoting.Error. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 /** @suppress {duplicate} */ 5 /** @suppress {duplicate} */
6 var remoting = remoting || {}; 6 var remoting = remoting || {};
7 7
8 (function() { 8 (function() {
9 9
10 'use strict'; 10 'use strict';
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 68
69 /** @private */ 69 /** @private */
70 remoting.HostNeedsUpdateDialog.prototype.onOK_ = function() { 70 remoting.HostNeedsUpdateDialog.prototype.onOK_ = function() {
71 this.deferred_.resolve(); 71 this.deferred_.resolve();
72 this.cleanup_(); 72 this.cleanup_();
73 }; 73 };
74 74
75 /** @private */ 75 /** @private */
76 remoting.HostNeedsUpdateDialog.prototype.onCancel_ = function() { 76 remoting.HostNeedsUpdateDialog.prototype.onCancel_ = function() {
77 this.deferred_.reject(remoting.Error.CANCELLED); 77 this.deferred_.reject(new remoting.Error(remoting.Error.Tag.CANCELLED));
78 this.cleanup_(); 78 this.cleanup_();
79 }; 79 };
80 80
81 })(); 81 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698