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

Unified Diff: chrome/browser/ui/browser.cc

Issue 580023003: Rename the drive: scheme with the externalfile: scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. 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
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/ui/location_bar/origin_chip_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 63c0e8c8fe2c1c5fe51228ad5318f7b250ad5e9d..5edd456decff5c44ac950358d96dfb3229157fbd 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)
@@ -1923,7 +1923,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 =
+ chromeos::CreateExternalFileURLFromPath(profile_, file_info.file_path);
+ if (!external_url.is_empty())
+ url = external_url;
#endif
if (url.is_empty())
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/ui/location_bar/origin_chip_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698