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

Issue 118993002: drive: Move FileSystem::LoadDirectoryIfNeeded to ChangeListLoader (Closed)

Created:
7 years ago by hashimoto
Modified:
7 years ago
Reviewers:
kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, tzik, tfarina, nhiroki, oshima+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

drive: Move FileSystem::LoadDirectoryIfNeeded() to ChangeListLoader ChangeListLoader::LoadIfNeeded()'s only user in the production code is FileSystem::LoadDiretoryIfNeeded(). It means that only test related code is passing empty DirectoryFetchInfo for LoadIfNeeded(). Move FileSystem::LoadDirectoryIfNeeded() to ChangeListLoader. Merge LoadIfNeeded() to LoadDirectoryIfNeeded(). Add LoadForTesting() for the sake of test code. BUG=260526 TEST=unit_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242081

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -210 lines) Patch
M chrome/browser/chromeos/drive/change_list_loader.h View 3 chunks +24 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_loader.cc View 1 2 chunks +98 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/drive/change_list_loader_unittest.cc View 14 chunks +22 lines, -35 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_integration_service.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/dummy_file_system.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/fake_file_system.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/fake_file_system.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system.h View 1 3 chunks +3 lines, -17 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 10 chunks +19 lines, -95 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_interface.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/sync_client_unittest.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/drive_internals.html View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/chromeos/drive_internals.js View 1 2 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/drive_internals_ui.cc View 1 4 chunks +9 lines, -9 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hashimoto
7 years ago (2013-12-19 10:34:32 UTC) #1
kinaba
https://codereview.chromium.org/118993002/diff/80001/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/118993002/diff/80001/chrome/browser/chromeos/drive/change_list_loader.cc#newcode422 chrome/browser/chromeos/drive/change_list_loader.cc:422: directory_path.DirName(), This recursive call implicitly assume that it eventually ...
7 years ago (2013-12-20 04:54:14 UTC) #2
hashimoto
https://codereview.chromium.org/118993002/diff/80001/chrome/browser/chromeos/drive/change_list_loader.cc File chrome/browser/chromeos/drive/change_list_loader.cc (right): https://codereview.chromium.org/118993002/diff/80001/chrome/browser/chromeos/drive/change_list_loader.cc#newcode422 chrome/browser/chromeos/drive/change_list_loader.cc:422: directory_path.DirName(), On 2013/12/20 04:54:14, kinaba wrote: > This recursive ...
7 years ago (2013-12-20 06:29:28 UTC) #3
kinaba
lgtm
7 years ago (2013-12-20 06:53:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/118993002/160001
7 years ago (2013-12-20 07:22:56 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-20 12:53:11 UTC) #6
Message was sent while issue was closed.
Change committed as 242081

Powered by Google App Engine
This is Rietveld 408576698