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

Side by Side Diff: chrome/browser/resources/file_manager/js/drive_banners.js

Issue 12207124: Change Get started to Check eligibility in the promo banner in Files.app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 * Responsible for showing banners in the file list. 6 * Responsible for showing banners in the file list.
7 * @param {DirectoryModel} directoryModel The model. 7 * @param {DirectoryModel} directoryModel The model.
8 * @param {VolumeManager} volumeManager The manager. 8 * @param {VolumeManager} volumeManager The manager.
9 * @param {DOMDocument} document HTML document. 9 * @param {DOMDocument} document HTML document.
10 * @constructor 10 * @constructor
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 var text = util.createChild(message, 'drive-welcome-text'); 162 var text = util.createChild(message, 'drive-welcome-text');
163 text.innerHTML = str(messageId); 163 text.innerHTML = str(messageId);
164 164
165 var links = util.createChild(message, 'drive-welcome-links'); 165 var links = util.createChild(message, 'drive-welcome-links');
166 166
167 var more; 167 var more;
168 if (this.newWelcome_) { 168 if (this.newWelcome_) {
169 title.textContent = str('DRIVE_WELCOME_TITLE_ALTERNATIVE'); 169 title.textContent = str('DRIVE_WELCOME_TITLE_ALTERNATIVE');
170 more = util.createChild(links, 170 more = util.createChild(links,
171 'drive-welcome-button drive-welcome-start', 'a'); 171 'drive-welcome-button drive-welcome-start', 'a');
172 more.textContent = str('DRIVE_WELCOME_GET_STARTED'); 172 more.textContent = str('DRIVE_WELCOME_CHECK_ELIGIBILITY');
173 more.href = GOOGLE_DRIVE_REDEEM; 173 more.href = GOOGLE_DRIVE_REDEEM;
174 } else { 174 } else {
175 title.textContent = str('DRIVE_WELCOME_TITLE'); 175 title.textContent = str('DRIVE_WELCOME_TITLE');
176 more = util.createChild(links, 'plain-link', 'a'); 176 more = util.createChild(links, 'plain-link', 'a');
177 more.textContent = str('DRIVE_LEARN_MORE'); 177 more.textContent = str('DRIVE_LEARN_MORE');
178 more.href = GOOGLE_DRIVE_FAQ_URL; 178 more.href = GOOGLE_DRIVE_FAQ_URL;
179 } 179 }
180 more.target = '_blank'; 180 more.target = '_blank';
181 181
182 var dismiss; 182 var dismiss;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 * @param {Function} completeCallback To be called (may be directly) when 574 * @param {Function} completeCallback To be called (may be directly) when
575 * this.newWelcome_ get ready. 575 * this.newWelcome_ get ready.
576 * @private 576 * @private
577 */ 577 */
578 FileListBannerController.prototype.preparePromo_ = function(completeCallback) { 578 FileListBannerController.prototype.preparePromo_ = function(completeCallback) {
579 if (this.newWelcome_ !== undefined) 579 if (this.newWelcome_ !== undefined)
580 completeCallback(); 580 completeCallback();
581 else 581 else
582 (this.promoCallbacks_ = this.promoCallbacks_ || []).push(completeCallback); 582 (this.promoCallbacks_ = this.promoCallbacks_ || []).push(completeCallback);
583 }; 583 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698