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

Issue 6695013: Cleanup NativeMetafile (win) interface and EMF class. (Closed)

Created:
9 years, 9 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, M-A Ruel
CC:
chromium-reviews, jam, brettw-cc_chromium.org, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Cleanup NativeMetafile (win) interface and EMF class. - Rename CreateDc to Init() and remove unused argument (all non-test calls were CreateDc(NULL, NULL). [This matches cross platform interface.] - Remove CreateFileBackedDc from the NativeMetafile interface and make InitToFile() in the EMF class. - Remove CreateFromFile from the NativeMetafile interface and make it InitFromFile() in the EMF class. - Move the CloseEmf method into the destructor, making the Emf class a use once class (matches actual use). BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78666 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=78669 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=78969

Patch Set 1 #

Patch Set 2 : Fix compiler errors #

Patch Set 3 : Rebase #

Patch Set 4 : Fix unit test. #

Patch Set 5 : Typo #

Total comments: 4

Patch Set 6 : Address comments and fix CreateFileBackedDC #

Patch Set 7 : Rebase #

Patch Set 8 : Fix win compile #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+105 lines, -149 lines) Patch
M chrome/common/common_param_traits_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/print_web_view_helper_win.cc View 1 2 3 4 5 6 7 8 5 chunks +3 lines, -5 lines 0 comments Download
M chrome/service/cloud_print/print_system_win.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.h View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/service/service_utility_process_host.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -8 lines 0 comments Download
M chrome/utility/utility_thread.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -11 lines 0 comments Download
M content/plugin/webplugin_delegate_stub.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M printing/emf_win.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -18 lines 0 comments Download
M printing/emf_win.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -26 lines 0 comments Download
M printing/emf_win_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +51 lines, -50 lines 0 comments Download
M printing/native_metafile.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -23 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
vandebo (ex-Chrome)
9 years, 9 months ago (2011-03-15 07:01:57 UTC) #1
Lei Zhang
Is this going to conflict with http://codereview.chromium.org/6611032/ ?
9 years, 9 months ago (2011-03-15 07:19:08 UTC) #2
vandebo (ex-Chrome)
Certainly, but that one can go in first. And it'll be a minor rebase for ...
9 years, 9 months ago (2011-03-15 07:56:41 UTC) #3
Lei Zhang
Care to rebase? Also, there's a try bot failure in EmfTest.DC.
9 years, 9 months ago (2011-03-16 03:14:52 UTC) #4
vandebo (ex-Chrome)
Rebase wasn't bad, but the unit test is still failing. I changed the way the ...
9 years, 9 months ago (2011-03-16 06:35:53 UTC) #5
vandebo (ex-Chrome)
All works now, ready for review.
9 years, 9 months ago (2011-03-17 03:35:09 UTC) #6
M-A Ruel
I think your 'e' is malfunctional, see description (two times) http://codereview.chromium.org/6695013/diff/8023/chrome/service/service_utility_process_host.h File chrome/service/service_utility_process_host.h (right): http://codereview.chromium.org/6695013/diff/8023/chrome/service/service_utility_process_host.h#newcode60 ...
9 years, 9 months ago (2011-03-17 13:19:21 UTC) #7
vandebo (ex-Chrome)
> I think your 'e' is malfunctional, see description (two times) Done. http://codereview.chromium.org/6695013/diff/8023/chrome/service/service_utility_process_host.h File chrome/service/service_utility_process_host.h ...
9 years, 9 months ago (2011-03-17 23:38:06 UTC) #8
M-A Ruel
lgtm
9 years, 9 months ago (2011-03-18 00:09:07 UTC) #9
vandebo (ex-Chrome)
Marc-Antoine, The Vista Tests bot did not like this change. The printing unit tests timed ...
9 years, 9 months ago (2011-03-18 17:19:57 UTC) #10
M-A Ruel
1. build the test in release and run the test on a vista box/vm. 2. ...
9 years, 9 months ago (2011-03-18 17:33:17 UTC) #11
vandebo (ex-Chrome)
9 years, 9 months ago (2011-03-22 17:37:07 UTC) #12
Turns out that the Vista failure was ill-timed flake.  I saw the bot fail
similarly yesterday, so I tried recommitting this patch and it stuck without
issue.

Powered by Google App Engine
This is Rietveld 408576698