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

Unified Diff: remoting/webapp/crd/js/hangout_consent_dialog_main.js

Issue 979483002: [Chromoting] Remove hangout consent dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unittest Created 5 years, 10 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/webapp/crd/js/hangout_consent_dialog.js ('k') | remoting/webapp/crd/js/it2me_helpee_channel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/hangout_consent_dialog_main.js
diff --git a/remoting/webapp/crd/js/hangout_consent_dialog_main.js b/remoting/webapp/crd/js/hangout_consent_dialog_main.js
deleted file mode 100644
index 8ced7a86dbb6dc2d4820cd1d3e97127b2794a4b5..0000000000000000000000000000000000000000
--- a/remoting/webapp/crd/js/hangout_consent_dialog_main.js
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright 2014 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.
-
-/**
-* @fileoverview
-* The entry point for dialog_hangout_consent.html.
-*/
-
-
-/** @suppress {duplicate} */
-var remoting = remoting || {};
-
-(function() {
-
-'use strict';
-
-/**
- * @constructor
- * @param {HTMLElement} rootElement
- * @param {string} requestToken
- * @param {boolean} authorized Whether the user is authorized or not.
- */
-var ConsentDialog = function(rootElement, requestToken, authorized) {
- /** @private */
- this.okButton_ = rootElement.querySelector('.ok-button');
- /** @private */
- this.cancelButton_ = rootElement.querySelector('.cancel-button');
- /** @private */
- this.authSection_ = rootElement.querySelector('.auth-message');
- /** @private */
- this.requestToken_ = requestToken;
-
- if (authorized) {
- this.authSection_.hidden = true;
- }
-
- this.okButton_.addEventListener('click', this.onButton_.bind(this, true));
- this.cancelButton_.addEventListener('click',this.onButton_.bind(this, false));
- base.resizeWindowToContent();
-};
-
-/**
- * @param {boolean} confirm
- * @private
- */
-ConsentDialog.prototype.onButton_ = function(confirm) {
- base.Ipc.invoke('remoting.HangoutConsentDialog.confirm', confirm,
- this.requestToken_);
- chrome.app.window.current().close();
-};
-
-function onDomContentLoaded() {
- var params = base.getUrlParameters();
- var authorized = getBooleanAttr(params, 'authorized', false);
- var token = getStringAttr(params, 'token');
- l10n.localize();
- var confirmDialog = new ConsentDialog(document.body, token, authorized);
-}
-
-window.addEventListener('load', onDomContentLoaded);
-
-}());
« no previous file with comments | « remoting/webapp/crd/js/hangout_consent_dialog.js ('k') | remoting/webapp/crd/js/it2me_helpee_channel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698