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

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

Issue 883123002: Fix Hangouts link for apps v2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 * ButterBar class that is used to show the butter bar with various 7 * ButterBar class that is used to show the butter bar with various
8 * notifications. 8 * notifications.
9 */ 9 */
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 } 89 }
90 90
91 if (showSurvey) { 91 if (showSurvey) {
92 this.show_(/*i18n-content*/'SURVEY_INVITATION', 92 this.show_(/*i18n-content*/'SURVEY_INVITATION',
93 ['<a href="http://goo.gl/njH2q" target="_blank">', '</a>'], 93 ['<a href="http://goo.gl/njH2q" target="_blank">', '</a>'],
94 remoting.ButterBar.kSurveyStorageKey_); 94 remoting.ButterBar.kSurveyStorageKey_);
95 } else if (showHangouts) { 95 } else if (showHangouts) {
96 this.show_(/*i18n-content*/'HANGOUTS_INVITATION', 96 this.show_(/*i18n-content*/'HANGOUTS_INVITATION',
97 ['<a id="hangouts-accept" ' + 97 ['<a id="hangouts-accept" ' +
98 'href="https://plus.google.com/hangouts/_?gid=818572447316">', 98 'href="https://plus.google.com/hangouts/_?gid=818572447316" ' +
99 'target="_blank">',
99 '</a>'], 100 '</a>'],
100 remoting.ButterBar.kHangoutsStorageKey_); 101 remoting.ButterBar.kHangoutsStorageKey_);
101 } 102 }
102 }; 103 };
103 104
104 /** @const @private */ 105 /** @const @private */
105 remoting.ButterBar.kId_ = 'butter-bar'; 106 remoting.ButterBar.kId_ = 'butter-bar';
106 107
107 /** @const @private */ 108 /** @const @private */
108 remoting.ButterBar.kMessageId_ = 'butter-bar-message'; 109 remoting.ButterBar.kMessageId_ = 'butter-bar-message';
(...skipping 18 matching lines...) Expand all
127 var value = {}; 128 var value = {};
128 value[this.storageKey_] = { 129 value[this.storageKey_] = {
129 optIn: accepted, 130 optIn: accepted,
130 date: new Date(), 131 date: new Date(),
131 version: chrome.runtime.getManifest().version 132 version: chrome.runtime.getManifest().version
132 }; 133 };
133 chrome.storage.sync.set(value); 134 chrome.storage.sync.set(value);
134 135
135 document.getElementById(remoting.ButterBar.kId_).hidden = true; 136 document.getElementById(remoting.ButterBar.kId_).hidden = true;
136 }; 137 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698