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

Issue 2345473002: Change ScopedTempDir::path() to GetPath() in chrome/browser/chromeos/file_manager (Closed)

Created:
4 years, 3 months ago by vabr (Chromium)
Modified:
4 years, 3 months ago
Reviewers:
achuithb
CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ScopedTempDir::path() to GetPath() in chrome/browser/chromeos/file_manager This CL also changes TestVolume::CreateRootDirectory to handle that GetPath() (unlike path()) cannot be called before initialising the ScopedTempDir. Because CreateRootDirectory apparently can be called multiple times from FakeTestVolume, it needs to handle that and not initialise the directory twice. On the other hand, the directory cannot be initialised from anywhere else, so this CL made this clear by adding a Boolean member root_initialized_ which is updated and checked by CreateRootDirectory. Using the Boolean member, unlike just handling the fact that the directory has been already initialised (this information is still possible to retrieve via Take()+Set()), makes it clearer that the assumption is the directory only being initialised where also root_initialized_ is set. R=achuith@chromium.org BUG=640599 Committed: https://crrev.com/eca5e5cf8a6d74f021953d804cabd8c4dd9c8b9b Cr-Commit-Position: refs/heads/master@{#418797}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -13 lines) Patch
M chrome/browser/chromeos/file_manager/file_manager_browsertest_base.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_watcher_unittest.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_manager/fileapi_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/zip_file_creator_browsertest.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 13 (8 generated)
vabr (Chromium)
Hi achuithb@, I addressed your comments from the original https://codereview.chromium.org/2318023002/. I believe my changes are ...
4 years, 3 months ago (2016-09-14 12:08:05 UTC) #6
achuithb
lgtm, thanks!
4 years, 3 months ago (2016-09-14 20:40:47 UTC) #7
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/2345473002/1
4 years, 3 months ago (2016-09-15 07:24:47 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-15 07:30:22 UTC) #11
commit-bot: I haz the power
4 years, 3 months ago (2016-09-15 07:31:44 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/eca5e5cf8a6d74f021953d804cabd8c4dd9c8b9b
Cr-Commit-Position: refs/heads/master@{#418797}

Powered by Google App Engine
This is Rietveld 408576698