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

Issue 426673003: Introduce a helper for OPENFILENAME struct to make certain logic testable. (Closed)

Created:
6 years, 4 months ago by erikwright (departed)
Modified:
6 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Introduce a helper for OPENFILENAME struct to make certain logic testable. BUG=73098 R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287048

Patch Set 1 #

Patch Set 2 : Add unittests. #

Total comments: 4

Patch Set 3 : Rebase. #

Patch Set 4 : Add export annotation to OpenFileName. #

Patch Set 5 : Update GN file. #

Patch Set 6 : Rename/inline Get(). #

Patch Set 7 : Fix renamed method calls. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -76 lines) Patch
M ui/base/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ui/base/ui_base.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A ui/base/win/open_file_name_win.h View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
A ui/base/win/open_file_name_win.cc View 1 2 3 4 5 1 chunk +87 lines, -0 lines 0 comments Download
A ui/base/win/open_file_name_win_unittest.cc View 1 2 3 4 5 6 1 chunk +137 lines, -0 lines 0 comments Download
M ui/shell_dialogs/select_file_dialog_win.cc View 1 2 3 4 5 3 chunks +29 lines, -76 lines 0 comments Download
M ui/ui_unittests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
erikwright (departed)
sky: PTAL. This logic was untested. Now it is extracted for testability. I will be ...
6 years, 4 months ago (2014-07-31 15:07:34 UTC) #1
sky
If this is only used shell_dialogs, can you leave the code there? Also, make sure ...
6 years, 4 months ago (2014-07-31 16:00:56 UTC) #2
erikwright (departed)
In http://crrev.com/419523006 it will also be used from chrome/utility and chrome/browser. Is ui/base/win right in ...
6 years, 4 months ago (2014-07-31 16:05:45 UTC) #3
sky
I didn't realize you wanted to use it from multiple places. Keeping here is fine ...
6 years, 4 months ago (2014-07-31 16:27:32 UTC) #4
erikwright (departed)
https://codereview.chromium.org/426673003/diff/20001/ui/base/win/open_file_name_win.h File ui/base/win/open_file_name_win.h (right): https://codereview.chromium.org/426673003/diff/20001/ui/base/win/open_file_name_win.h#newcode43 ui/base/win/open_file_name_win.h:43: void GetResult(base::FilePath* directory, On 2014/07/31 16:27:31, sky wrote: > ...
6 years, 4 months ago (2014-07-31 16:39:29 UTC) #5
sky
Ok, LGTM
6 years, 4 months ago (2014-07-31 19:38:56 UTC) #6
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 4 months ago (2014-07-31 19:42:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/426673003/60001
6 years, 4 months ago (2014-07-31 19:44:41 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-01 00:16:19 UTC) #9
erikwright (departed)
The CQ bit was unchecked by erikwright@chromium.org
6 years, 4 months ago (2014-08-01 04:24:14 UTC) #10
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 4 months ago (2014-08-01 13:11:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/426673003/100001
6 years, 4 months ago (2014-08-01 13:14:07 UTC) #12
erikwright (departed)
https://codereview.chromium.org/426673003/diff/20001/ui/base/win/open_file_name_win.h File ui/base/win/open_file_name_win.h (right): https://codereview.chromium.org/426673003/diff/20001/ui/base/win/open_file_name_win.h#newcode47 ui/base/win/open_file_name_win.h:47: OPENFILENAME* Get(); On 2014/07/31 16:27:31, sky wrote: > nit: ...
6 years, 4 months ago (2014-08-01 13:26:09 UTC) #13
erikwright (departed)
The CQ bit was checked by erikwright@chromium.org
6 years, 4 months ago (2014-08-01 15:20:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/426673003/110001
6 years, 4 months ago (2014-08-01 15:22:18 UTC) #15
erikwright (departed)
6 years, 4 months ago (2014-08-01 18:05:24 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 manually as r287048 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698