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

Side by Side Diff: remoting/webapp/app_remoting/js/app_remoting.js

Issue 1073003005: Fix not-authorized error message. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simpler implementation. Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * This class implements the functionality that is specific to application 7 * This class implements the functionality that is specific to application
8 * remoting ("AppRemoting" or AR). 8 * remoting ("AppRemoting" or AR).
9 */ 9 */
10 10
(...skipping 30 matching lines...) Expand all
41 remoting.AppRemoting.prototype.getActivity = function() { 41 remoting.AppRemoting.prototype.getActivity = function() {
42 return this.activity_; 42 return this.activity_;
43 }; 43 };
44 44
45 /** 45 /**
46 * @param {!remoting.Error} error The failure reason. 46 * @param {!remoting.Error} error The failure reason.
47 * @override {remoting.ApplicationInterface} 47 * @override {remoting.ApplicationInterface}
48 */ 48 */
49 remoting.AppRemoting.prototype.signInFailed_ = function(error) { 49 remoting.AppRemoting.prototype.signInFailed_ = function(error) {
50 remoting.MessageWindow.showErrorMessage( 50 remoting.MessageWindow.showErrorMessage(
51 chrome.i18n.getMessage(/*i18n-content*/'CONNECTION_FAILED'), 51 this.getApplicationName(),
Jamie 2015/04/24 22:04:52 Connection failed is the wrong message here becaus
52 chrome.i18n.getMessage(error.getTag())); 52 chrome.i18n.getMessage(error.getTag()));
53 }; 53 };
54 54
55 /** 55 /**
56 * @override {remoting.ApplicationInterface} 56 * @override {remoting.ApplicationInterface}
57 */ 57 */
58 remoting.AppRemoting.prototype.initApplication_ = function() { 58 remoting.AppRemoting.prototype.initApplication_ = function() {
59 remoting.windowShape.updateClientWindowShape(); 59 remoting.windowShape.updateClientWindowShape();
60 60
61 this.activity_ = new remoting.AppRemotingActivity(this.appCapabilities_); 61 this.activity_ = new remoting.AppRemotingActivity(this.appCapabilities_);
62 }; 62 };
63 63
64 /** 64 /**
65 * @param {string} token An OAuth access token. 65 * @param {string} token An OAuth access token.
66 * @override {remoting.ApplicationInterface} 66 * @override {remoting.ApplicationInterface}
67 */ 67 */
68 remoting.AppRemoting.prototype.startApplication_ = function(token) { 68 remoting.AppRemoting.prototype.startApplication_ = function(token) {
69 this.activity_.start(); 69 this.activity_.start();
70 }; 70 };
71 71
72 /** 72 /**
73 * @override {remoting.ApplicationInterface} 73 * @override {remoting.ApplicationInterface}
74 */ 74 */
75 remoting.AppRemoting.prototype.exitApplication_ = function() { 75 remoting.AppRemoting.prototype.exitApplication_ = function() {
76 this.activity_.dispose(); 76 this.activity_.dispose();
77 this.closeMainWindow_(); 77 this.closeMainWindow_();
78 }; 78 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698