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

Unified Diff: ui/file_manager/file_manager/foreground/js/drive_banners.js

Issue 550863003: Rename fileBrowserPrivate to fileManagerPrivate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: ui/file_manager/file_manager/foreground/js/drive_banners.js
diff --git a/ui/file_manager/file_manager/foreground/js/drive_banners.js b/ui/file_manager/file_manager/foreground/js/drive_banners.js
index 33946c331ec77e1d642105f4f053e7bf4ddf43f3..d0d53c0a7830c59f0df33b222c531e7443efbd65 100644
--- a/ui/file_manager/file_manager/foreground/js/drive_banners.js
+++ b/ui/file_manager/file_manager/foreground/js/drive_banners.js
@@ -54,7 +54,7 @@ function FileListBannerController(
var authFailedText = this.authFailedBanner_.querySelector('.drive-text');
authFailedText.innerHTML = util.htmlUnescape(str('DRIVE_NOT_REACHED'));
authFailedText.querySelector('a').addEventListener('click', function(e) {
- chrome.fileBrowserPrivate.logoutUserForReauthentication();
+ chrome.fileManagerPrivate.logoutUserForReauthentication();
e.preventDefault();
});
this.maybeShowAuthFailBanner_();
@@ -347,7 +347,7 @@ FileListBannerController.prototype.checkSpaceAndMaybeShowWelcomeBanner_ =
group.add(function(onCompleted) {
// Current directory must be set, since this code is called after
// scanning is completed. However, the volumeInfo may be gone.
- chrome.fileBrowserPrivate.getSizeStats(
+ chrome.fileManagerPrivate.getSizeStats(
driveVolume.volumeId,
function(result) {
if (result && result.totalSize >= offerSize * 1024 * 1024 * 1024)
@@ -435,10 +435,10 @@ FileListBannerController.prototype.onDirectoryChanged_ = function(event) {
if (isLowSpaceWarningTarget !==
this.isLowSpaceWarningTarget_(previousRootVolume)) {
if (isLowSpaceWarningTarget) {
- chrome.fileBrowserPrivate.onDirectoryChanged.addListener(
+ chrome.fileManagerPrivate.onDirectoryChanged.addListener(
this.privateOnDirectoryChangedBound_);
} else {
- chrome.fileBrowserPrivate.onDirectoryChanged.removeListener(
+ chrome.fileManagerPrivate.onDirectoryChanged.removeListener(
this.privateOnDirectoryChangedBound_);
}
}
@@ -471,7 +471,7 @@ FileListBannerController.prototype.isLowSpaceWarningTarget_ =
/**
* Callback which is invoked when the file system has been changed.
- * @param {Object} event chrome.fileBrowserPrivate.onDirectoryChanged event.
+ * @param {Object} event chrome.fileManagerPrivate.onDirectoryChanged event.
* @private
*/
FileListBannerController.prototype.privateOnDirectoryChanged_ = function(
@@ -520,7 +520,7 @@ FileListBannerController.prototype.maybeShowLowSpaceWarning_ = function(
if (!volume.fileSystem)
return;
- chrome.fileBrowserPrivate.getSizeStats(
+ chrome.fileManagerPrivate.getSizeStats(
volume.volumeId,
function(sizeStats) {
var currentVolume = this.volumeManager_.getVolumeInfo(

Powered by Google App Engine
This is Rietveld 408576698