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

Unified Diff: chrome/browser/resources/file_manager/js/mock_chrome.js

Issue 10818031: Alternative GDrive promo for the File Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 5 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: chrome/browser/resources/file_manager/js/mock_chrome.js
diff --git a/chrome/browser/resources/file_manager/js/mock_chrome.js b/chrome/browser/resources/file_manager/js/mock_chrome.js
index 757030ef44d34865e8ad247c2c30b678c1f0c0d3..8b4e192ded3b78bb2bd359a07931a66d2173939a 100644
--- a/chrome/browser/resources/file_manager/js/mock_chrome.js
+++ b/chrome/browser/resources/file_manager/js/mock_chrome.js
@@ -321,7 +321,13 @@ chrome.fileBrowserPrivate = {
});
},
- getSizeStats: function() {},
+ getSizeStats: function(url, callback) {
+ var kB_inGb = 1024 * 1024;
Dmitry Zvorygin 2012/07/25 15:15:46 Consider using util.SCALE.
+ callback({
+ remainingSizeKB: 9 * kB_inGb,
+ totalSizeKB: 10 * kB_inGb
+ });
+ },
getVolumeMetadata: function(url, callback) {
var metadata = {};
@@ -542,6 +548,7 @@ chrome.fileBrowserPrivate = {
GDATA_CANNOT_REACH: '$1 cannot be reached at this time',
GDATA_WELCOME_TITLE: 'Welcome to Google Drive!',
+ GDATA_WELCOME_TITLE_ALTERNATIVE: 'Get 100 GB free with Google Drive',
GDATA_WELCOME_TEXT_SHORT:
'All files saved in this folder are backed up online automatically',
GDATA_WELCOME_TEXT_LONG:
@@ -552,6 +559,7 @@ chrome.fileBrowserPrivate = {
'safely stored in Google Drive .</p>' +
'<p><strong>Share, create and collaborate</strong> ' +
'on files with others all in one place .</p>',
+ GDATA_WELCOME_GET_STARTED: 'Get started',
GDATA_WELCOME_DISMISS: 'Dismiss',
GDATA_LOADING_PROGRESS: '$1 files fetched',

Powered by Google App Engine
This is Rietveld 408576698