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

Issue 6042009: Added WARN_UNUSED_RESULT to ScopedTempDir methods. (Closed)

Created:
9 years, 11 months ago by cbentzel
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Erik does not do reviews, brettw-cc_chromium.org, jam, Aaron Boodman, pam+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org
Visibility:
Public.

Description

Added WARN_UNUSED_RESULT to ScopedTempDir methods. BUG=NONE TEST=all targets build, tests pass. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71322

Patch Set 1 #

Patch Set 2 : Whitespace fix #

Patch Set 3 : A bunch of changes. #

Patch Set 4 : More comments #

Patch Set 5 : OSX build fix #

Total comments: 2

Patch Set 6 : Remove extraneous IsValid check #

Total comments: 2

Patch Set 7 : Don't fail when scratch_metafile_dir is not set #

Patch Set 8 : Whitespace fix #

Total comments: 10

Patch Set 9 : Fix Pawel's nits, merge with trunk #

Patch Set 10 : Delete fix in ProxyLauncher::LaunchBrowser #

Patch Set 11 : merge with trunk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -33 lines) Patch
M base/scoped_temp_dir.h View 1 chunk +4 lines, -4 lines 0 comments Download
M base/scoped_temp_dir_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/convert_web_app_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_websocket_apitest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/process_singleton_linux.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/process_singleton_mac_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/process_singleton_uitest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/automation/automation_proxy_uitest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/test/automation/proxy_launcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/ui_test_utils.h View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -3 lines 0 comments Download
M chrome/test/ui_test_utils.cc View 1 2 3 4 5 6 7 8 2 chunks +18 lines, -3 lines 0 comments Download
M chrome/worker/worker_uitest.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_operation_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M webkit/fileapi/file_system_path_manager_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M webkit/tools/test_shell/simple_database_system.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
cbentzel
This change adds WARN_UNUSED_RESULT to ScopedTempDir, and adjusts the users of that to match. The ...
9 years, 11 months ago (2011-01-06 12:54:57 UTC) #1
cbentzel
More reviewers [pressed enter too quickly] shess: process_singleton_mac_unittest sanjeevr: service_utility_process_host nirnimesh: automation_proxy_uitest phajdan.jr: ui_test_utils, worker_uitest, ...
9 years, 11 months ago (2011-01-06 13:01:02 UTC) #2
Sam Kerner (Chrome)
On 2011/01/06 12:54:57, cbentzel wrote: > This change adds WARN_UNUSED_RESULT to ScopedTempDir, and adjusts the ...
9 years, 11 months ago (2011-01-06 14:54:56 UTC) #3
Erik does not do reviews
scoped_temp_dir* LGTM
9 years, 11 months ago (2011-01-06 19:01:34 UTC) #4
Scott Hess - ex-Googler
My name is Scott Hess, and I support this change. http://codereview.chromium.org/6042009/diff/8001/webkit/fileapi/file_system_path_manager_unittest.cc File webkit/fileapi/file_system_path_manager_unittest.cc (right): http://codereview.chromium.org/6042009/diff/8001/webkit/fileapi/file_system_path_manager_unittest.cc#newcode169 ...
9 years, 11 months ago (2011-01-06 19:17:26 UTC) #5
cbentzel
http://codereview.chromium.org/6042009/diff/8001/webkit/fileapi/file_system_path_manager_unittest.cc File webkit/fileapi/file_system_path_manager_unittest.cc (right): http://codereview.chromium.org/6042009/diff/8001/webkit/fileapi/file_system_path_manager_unittest.cc#newcode169 webkit/fileapi/file_system_path_manager_unittest.cc:169: ASSERT_TRUE(data_dir_->IsValid()); On 2011/01/06 19:17:26, shess wrote: > Second ASSERT_TRUE() ...
9 years, 11 months ago (2011-01-06 19:20:33 UTC) #6
Nirnimesh
automation_proxy_uitest LGTM
9 years, 11 months ago (2011-01-06 19:47:58 UTC) #7
willchan no longer on Chromium
process_singleton_* lgtm. On Thu, Jan 6, 2011 at 4:54 AM, <cbentzel@chromium.org> wrote: > Reviewers: Erik ...
9 years, 11 months ago (2011-01-06 19:58:17 UTC) #8
kinuko
On 2011/01/06 13:01:02, cbentzel wrote: > kinuko: file_system_operation_unittest, file_system_path_manager_unittest file_system* LGTM.
9 years, 11 months ago (2011-01-07 02:11:15 UTC) #9
ukai
extension_websocket_apitest: LGTM.
9 years, 11 months ago (2011-01-07 02:46:32 UTC) #10
sanjeevr
http://codereview.chromium.org/6042009/diff/17001/chrome/service/service_utility_process_host.cc File chrome/service/service_utility_process_host.cc (right): http://codereview.chromium.org/6042009/diff/17001/chrome/service/service_utility_process_host.cc#newcode197 chrome/service/service_utility_process_host.cc:197: if (!scratch_metafile_dir.Set(metafile_path.DirName())) { The only use to the scratch_metafile_dir ...
9 years, 11 months ago (2011-01-07 04:38:56 UTC) #11
cbentzel
http://codereview.chromium.org/6042009/diff/17001/chrome/service/service_utility_process_host.cc File chrome/service/service_utility_process_host.cc (right): http://codereview.chromium.org/6042009/diff/17001/chrome/service/service_utility_process_host.cc#newcode197 chrome/service/service_utility_process_host.cc:197: if (!scratch_metafile_dir.Set(metafile_path.DirName())) { On 2011/01/07 04:38:57, sanjeevr wrote: > ...
9 years, 11 months ago (2011-01-10 14:14:36 UTC) #12
sanjeevr
LGTM for service_utility_process_host.cc
9 years, 11 months ago (2011-01-10 18:20:36 UTC) #13
cbentzel
Thanks everyone. I'm still waiting for: aa: convert_web_app_unittest.cc [although that change is trivial] phajdan.jr: ui_test_utils, ...
9 years, 11 months ago (2011-01-11 12:55:23 UTC) #14
Paweł Hajdan Jr.
LGTM Sorry for late reply. Rather minor comments. http://codereview.chromium.org/6042009/diff/28001/chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc File chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc (right): http://codereview.chromium.org/6042009/diff/28001/chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc#newcode106 chrome/browser/extensions/sandboxed_extension_unpacker_unittest.cc:106: bool ...
9 years, 11 months ago (2011-01-11 13:01:09 UTC) #15
cbentzel
Thanks for the review. Still waiting from aa+dumi, but I will land without their comment ...
9 years, 11 months ago (2011-01-11 19:56:38 UTC) #16
Scott Hess - ex-Googler
On 2011/01/11 19:56:38, cbentzel wrote: > Still waiting from aa+dumi, but I will land without ...
9 years, 11 months ago (2011-01-11 20:06:43 UTC) #17
cbentzel
9 years, 11 months ago (2011-01-11 21:13:13 UTC) #18
On Tue, Jan 11, 2011 at 3:06 PM, <shess@chromium.org> wrote:

> On 2011/01/11 19:56:38, cbentzel wrote:
>
>> Still waiting from aa+dumi, but I will land without their comment since
>>
> changes
>
>> in both files are trivial.
>>
>
> I think the simple_database_system.cc change looks reasonable, given that
> it's
> in a test harness.


Yes. I wouldn't have introduced a CHECK if it was in production code.

Powered by Google App Engine
This is Rietveld 408576698