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

Unified Diff: remoting/webapp/app_remoting/js/ar_auth_dialog.js

Issue 1816653002: Remove app_remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/app_remoting/js/ar_auth_dialog.js
diff --git a/remoting/webapp/app_remoting/js/ar_auth_dialog.js b/remoting/webapp/app_remoting/js/ar_auth_dialog.js
deleted file mode 100644
index b65ec6073c32276210717263e7f71b3aaad3b0d1..0000000000000000000000000000000000000000
--- a/remoting/webapp/app_remoting/js/ar_auth_dialog.js
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/** @suppress {duplicate} */
-var remoting = remoting || {};
-
-(function() {
-
-'use strict';
-
-var instance_ = null;
-
-/**
- * @constructor
- * @implements {remoting.Identity.ConsentDialog}
- * @private
- */
-remoting.AuthDialog = function() {
- /** @private {base.Deferred} */
- this.deferred_ = null;
-};
-
-/**
- * @return {Promise} A Promise object that resolves when the user clicks on the
- * auth button.
- */
-remoting.AuthDialog.prototype.show = function() {
- if (!this.deferred_) {
- this.deferred_ = new base.Deferred();
- remoting.MessageWindow.showMessageWindow(
- l10n.getTranslationOrError(/*i18n-content*/'MODE_AUTHORIZE'),
- l10n.getTranslationOrError(/*i18n-content*/'DESCRIPTION_AUTHORIZE'),
- l10n.getTranslationOrError(/*i18n-content*/'CONTINUE_BUTTON'),
- this.onOk_.bind(this));
- }
- return this.deferred_.promise();
-};
-
-/**
- * @return {remoting.AuthDialog}
- */
-remoting.AuthDialog.getInstance = function() {
- if (!instance_) {
- instance_ = new remoting.AuthDialog();
- }
- return instance_;
-};
-
-remoting.AuthDialog.prototype.onOk_ = function() {
- console.assert(this.deferred_ !== null, 'No deferred Promise found.');
- this.deferred_.resolve();
- this.deferred_ = null;
-};
-
-})();
« no previous file with comments | « remoting/webapp/app_remoting/js/application_context_menu.js ('k') | remoting/webapp/app_remoting/js/ar_background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698