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

Unified Diff: chrome/browser/chromeos/extensions/file_manager_util.cc

Issue 13401003: chromeos: Replace resource ID in drive URL with path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unneeded include Created 7 years, 8 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/chromeos/drive/drive_url_request_job_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager_util.cc b/chrome/browser/chromeos/extensions/file_manager_util.cc
index 505d7f7b89afe1669cf0fecfd728f96ccdca5d05..5790bdec1b3bd42da58978b2c675a516beff33b5 100644
--- a/chrome/browser/chromeos/extensions/file_manager_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager_util.cc
@@ -283,9 +283,8 @@ void OnDriveFileFound(Profile* profile,
if (error == drive::DRIVE_FILE_OK) {
GURL page_url;
if (file_type == drive::REGULAR_FILE) {
- page_url = drive::util::GetFileResourceUrl(
- entry_proto->resource_id(),
- entry_proto->base_name());
+ page_url = drive::util::FilePathToDriveURL(
+ drive::util::ExtractDrivePath(file_path));
} else if (file_type == drive::HOSTED_DOCUMENT) {
page_url = GURL(entry_proto->file_specific_info().alternate_url());
} else {
« no previous file with comments | « chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698