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

Issue 2491383002: Use Distilled path instead of DistilledURL. (Closed)

Created:
4 years, 1 month ago by Olivier
Modified:
4 years, 1 month ago
Reviewers:
gambard, jif, jif-google
CC:
chromium-reviews, mac-reviews_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use Distilled path instead of DistilledURL. It does not make sense to store the sandbox path for the offline files. Instead, store the path relative to the offline folder. Also rename method to make clear distinction between absolute file path and relative path that can be used in files path or URLs. DistilledURL change semantics. It was the file URL to the local file, it is now a URL that can be loaded to load the file. BUG=664124 Committed: https://crrev.com/f2af01fd026943df1d749b43c311a1cafb1d6693 Cr-Commit-Position: refs/heads/master@{#431912}

Patch Set 1 #

Total comments: 17

Patch Set 2 : feedback #

Total comments: 2

Patch Set 3 : feedback #

Patch Set 4 : fix compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -85 lines) Patch
M ios/chrome/browser/reading_list/reading_list_download_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_entry.h View 1 3 chunks +7 lines, -4 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_entry.cc View 6 chunks +22 lines, -9 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_entry_unittest.cc View 1 2 3 chunks +8 lines, -7 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_model.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_model_impl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_model_impl.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_model_storage_defaults.mm View 3 chunks +14 lines, -13 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_model_storage_unittest.mm View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_model_unittest.cc View 1 2 3 2 chunks +6 lines, -6 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.h View 2 chunks +23 lines, -11 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.cc View 1 7 chunks +23 lines, -18 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (12 generated)
Olivier
4 years, 1 month ago (2016-11-10 15:40:14 UTC) #2
jif-google
Great, this bothered me as well. https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_download_service.h File ios/chrome/browser/reading_list/reading_list_download_service.h (right): https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_download_service.h#newcode83 ios/chrome/browser/reading_list/reading_list_download_service.h:83: const base::FilePath& distilled_url, ...
4 years, 1 month ago (2016-11-10 15:48:25 UTC) #4
jif-google
https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry.cc File ios/chrome/browser/reading_list/reading_list_entry.cc (right): https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry.cc#newcode10 ios/chrome/browser/reading_list/reading_list_entry.cc:10: // URL used to open offline pages. On 2016/11/10 ...
4 years, 1 month ago (2016-11-10 15:51:35 UTC) #5
gambard
https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry.h File ios/chrome/browser/reading_list/reading_list_entry.h (right): https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry.h#newcode45 ios/chrome/browser/reading_list/reading_list_entry.h:45: const GURL DistilledURL() const; Are we still using this? ...
4 years, 1 month ago (2016-11-10 16:07:08 UTC) #6
Olivier
Thanks https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_download_service.h File ios/chrome/browser/reading_list/reading_list_download_service.h (right): https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_download_service.h#newcode83 ios/chrome/browser/reading_list/reading_list_download_service.h:83: const base::FilePath& distilled_url, On 2016/11/10 15:48:24, jif-google wrote: ...
4 years, 1 month ago (2016-11-10 16:49:10 UTC) #7
commit-bot: I haz the power
This CL has an open dependency (Issue 2496553002 Patch 20001). Please resolve the dependency and ...
4 years, 1 month ago (2016-11-10 16:50:06 UTC) #11
gambard
lgtm with question https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry_unittest.cc File ios/chrome/browser/reading_list/reading_list_entry_unittest.cc (right): https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry_unittest.cc#newcode45 ios/chrome/browser/reading_list/reading_list_entry_unittest.cc:45: TEST(ReadingListEntry, DistilledPath) { On 2016/11/10 16:49:10, ...
4 years, 1 month ago (2016-11-10 16:54:35 UTC) #12
Olivier
Done, thanks https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry_unittest.cc File ios/chrome/browser/reading_list/reading_list_entry_unittest.cc (right): https://codereview.chromium.org/2491383002/diff/1/ios/chrome/browser/reading_list/reading_list_entry_unittest.cc#newcode45 ios/chrome/browser/reading_list/reading_list_entry_unittest.cc:45: TEST(ReadingListEntry, DistilledPath) { On 2016/11/10 16:54:35, gambard ...
4 years, 1 month ago (2016-11-14 16:43:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2491383002/40001
4 years, 1 month ago (2016-11-14 16:43:58 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/105032) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-14 16:54:13 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2491383002/60001
4 years, 1 month ago (2016-11-14 17:09:15 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-14 19:54:34 UTC) #23
commit-bot: I haz the power
4 years, 1 month ago (2016-11-14 20:10:28 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f2af01fd026943df1d749b43c311a1cafb1d6693
Cr-Commit-Position: refs/heads/master@{#431912}

Powered by Google App Engine
This is Rietveld 408576698