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

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: Some tweaks 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
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..b6d0d73db8571abc6b71273d4c70102c453d10a1 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;
+ callback({
+ remainingSizeKB: 9 * kB_inGb,
+ totalSizeKB: 10 * kB_inGb
+ });
+ },
getVolumeMetadata: function(url, callback) {
var metadata = {};
@@ -433,6 +439,8 @@ chrome.fileBrowserPrivate = {
FILE_IS_DIRECTORY: 'Folder',
+ CHROMEOS_RELEASE_BOARD: 'stumpy',
+
GDATA_DIRECTORY_LABEL: 'Google Drive',
ENABLE_GDATA: true,
PDF_VIEW_ENABLED: true,
@@ -542,6 +550,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 +561,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',
« no previous file with comments | « chrome/browser/resources/file_manager/js/file_manager.js ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698