Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / ui / file_manager / file_manager / foreground / js / share_dialog.js
index bde1e08..4bdc23e 100644 (file)
@@ -70,9 +70,9 @@ ShareDialog.WebViewAuthorizer.prototype.initialize = function(callback) {
   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);
@@ -87,7 +87,7 @@ ShareDialog.WebViewAuthorizer.prototype.initialize = function(callback) {
  */
 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();
@@ -265,7 +265,7 @@ ShareDialog.prototype.show = function(entry, 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)
@@ -282,10 +282,10 @@ ShareDialog.prototype.show = function(entry, callback) {
   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.