| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }; |
| OLD | NEW |