Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 0525e02fffecdf9cef21665c93a8cabe13fb5940..24bc6c1c745536a449fc47e1f26db5417bc7462b 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -205,7 +205,7 @@ |
#endif // OS_WIN |
#if defined(OS_CHROMEOS) |
-#include "chrome/browser/chromeos/drive/file_system_util.h" |
+#include "chrome/browser/chromeos/fileapi/external_file_url_util.h" |
#endif |
#if defined(USE_ASH) |
@@ -1924,7 +1924,10 @@ void Browser::FileSelectedWithExtraInfo(const ui::SelectedFileInfo& file_info, |
GURL url = net::FilePathToFileURL(file_info.local_path); |
#if defined(OS_CHROMEOS) |
- drive::util::MaybeSetDriveURL(profile_, file_info.file_path, &url); |
+ const GURL external_url = |
sky
2014/09/22 16:44:18
Is there a reason this is conditional? And do you
hirono
2014/09/23 09:25:17
Yes, In Chrome OS, some volumes are mapped to nati
|
+ chromeos::CreateExternalFileURLFromPath(profile_, file_info.file_path); |
+ if (!external_url.is_empty()) |
+ url = external_url; |
#endif |
if (url.is_empty()) |