var registerInjectionHooks = function() {
this.webView_.removeEventListener('loadstop', registerInjectionHooks);
this.webView_.request.onBeforeSendHeaders.addListener(
- this.authorizeRequest_.bind(this),
- {urls: [this.urlPattern_]},
- ['blocking', 'requestHeaders']);
+ this.authorizeRequest_.bind(this),
+ {urls: [this.urlPattern_]},
+ ['blocking', 'requestHeaders']);
this.initialized_ = true;
callback();
}.bind(this);
*/
ShareDialog.WebViewAuthorizer.prototype.authorize = function(callback) {
// Fetch or update the access token.
- chrome.fileBrowserPrivate.requestAccessToken(false, // force_refresh
+ chrome.fileManagerPrivate.requestAccessToken(false, // force_refresh
function(inAccessToken) {
this.accessToken_ = inAccessToken;
callback();
// Fetches an url to the sharing dialog.
var shareUrl;
group.add(function(inCallback) {
- chrome.fileBrowserPrivate.getShareUrl(
+ chrome.fileManagerPrivate.getShareUrl(
entry.toURL(),
function(inShareUrl) {
if (!chrome.runtime.lastError)
group.run(function() {
// If the url is not obtained, return the network error.
if (!shareUrl) {
- // Logs added temporarily to track crbug.com/288783.
- console.debug('The share URL is not available.');
+ // Logs added temporarily to track crbug.com/288783.
+ console.debug('The share URL is not available.');
- this.hideWithResult(ShareDialog.Result.NETWORK_ERROR);
+ this.hideWithResult(ShareDialog.Result.NETWORK_ERROR);
return;
}
// Already inactive, therefore ignore.