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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_service.cc

Issue 11421222: Fix DriveFileSyncService::GetOriginForEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync_file_system/drive_file_sync_service.cc
diff --git a/chrome/browser/sync_file_system/drive_file_sync_service.cc b/chrome/browser/sync_file_system/drive_file_sync_service.cc
index e0edc101ece985f4c1455178f2fed993ed1668c3..381bfebec58aa5aff8fefeefe3642c4c124a9557 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_service.cc
+++ b/chrome/browser/sync_file_system/drive_file_sync_service.cc
@@ -1461,9 +1461,9 @@ bool DriveFileSyncService::GetOriginForEntry(
itr != entry.links().end(); ++itr) {
if ((*itr)->type() != google_apis::Link::LINK_PARENT)
continue;
- GURL origin(UTF16ToUTF8((*itr)->title()));
- if (!origin.is_valid())
- continue;
+ GURL origin(DriveFileSyncClient::DirectoryTitleToOrigin(
+ UTF16ToUTF8((*itr)->title())));
+ DCHECK(origin.is_valid());
if (!metadata_store_->IsBatchSyncOrigin(origin) &&
!metadata_store_->IsIncrementalSyncOrigin(origin))
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698