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

Issue 2290743002: Partial revert of https://codereview.chromium.org/1911973002/ (Closed)

Created:
4 years, 3 months ago by scottmg
Modified:
4 years, 3 months ago
Reviewers:
esprehn, Bret, Nico, Evan Stade
CC:
ananta, Bret, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Partial revert of https://codereview.chromium.org/1911973002/ This avoids calling NativeThemeWin methods in the renderer, which call user32, gdi32, and load uxtheme.dll, which we don't/can't do in the renderer. Also removes native_theme_win and native_theme_dark_win from child processes at the build file level. There's no way they could work in the renderer implemented as they are. NativeThemeAuraWin is removed as it was only used to special case scrollbars to NativeThemeWin, but that doesn't work. Attempted to readd a DLOG(FATAL) to SingletonHwnd(), but can't yet for a different reason, browser_tests: [3472:4712:0829/151623:FATAL:singleton_hwnd.cc(34)] Cannot create windows on non-UI thread! Backtrace: base::debug::StackTrace::StackTrace [0x023E3157+23] logging::LogMessage::~LogMessage [0x0239A681+49] gfx::SingletonHwnd::SingletonHwnd [0x02EA5A6E+111] base::Singleton<gfx::SingletonHwnd,base::DefaultSingletonTraits<gfx::SingletonHwnd>,gfx::SingletonHwnd>::get [0x02EA5BCB+42] gfx::GetFontRenderParams [0x02E97CED+344] gfx::GetFontRenderParams [0x02E97BF6+97] content::PpapiPluginMain [0x02304622+390] ... BUG=258201 Committed: https://crrev.com/b92365ec08b7d2e96974df794dfb7a7f1ac347c8 Cr-Commit-Position: refs/heads/master@{#415420}

Patch Set 1 #

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : comment in header #

Total comments: 1

Patch Set 4 : no fatal yet :( #

Patch Set 5 : mac libtool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -134 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/child/webthemeengine_impl_default.h View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M content/child/webthemeengine_impl_default.cc View 3 chunks +51 lines, -1 line 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_win.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M ui/native_theme/BUILD.gn View 1 2 3 4 3 chunks +25 lines, -11 lines 0 comments Download
M ui/native_theme/native_theme_aura.cc View 1 2 chunks +0 lines, -2 lines 0 comments Download
D ui/native_theme/native_theme_aurawin.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D ui/native_theme/native_theme_aurawin.cc View 1 1 chunk +0 lines, -83 lines 0 comments Download
M ui/views/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 59 (36 generated)
scottmg
The chrome/ and content/ files are a revert of https://codereview.chromium.org/1911973002/ so +esprehn and +estade as ...
4 years, 3 months ago (2016-08-29 20:15:04 UTC) #14
esprehn
Your change description says "..." what should be there?
4 years, 3 months ago (2016-08-29 20:18:04 UTC) #15
scottmg
On 2016/08/29 20:18:04, esprehn wrote: > Your change description says "..." what should be there? ...
4 years, 3 months ago (2016-08-29 20:19:55 UTC) #17
scottmg
On 2016/08/29 20:19:55, scottmg wrote: > On 2016/08/29 20:18:04, esprehn wrote: > > Your change ...
4 years, 3 months ago (2016-08-29 20:20:04 UTC) #18
esprehn
So this preserves the feature, but it never worked... so how did the original author ...
4 years, 3 months ago (2016-08-29 20:20:11 UTC) #19
scottmg
On 2016/08/29 20:20:11, esprehn wrote: > So this preserves the feature, but it never worked... ...
4 years, 3 months ago (2016-08-29 20:27:11 UTC) #21
Evan Stade
+bsep https://codereview.chromium.org/2290743002/diff/20001/content/child/webthemeengine_impl_default.h File content/child/webthemeengine_impl_default.h (right): https://codereview.chromium.org/2290743002/diff/20001/content/child/webthemeengine_impl_default.h#newcode31 content/child/webthemeengine_impl_default.h:31: // Caches the scrollbar metrics. is it explained ...
4 years, 3 months ago (2016-08-29 20:40:36 UTC) #23
scottmg
https://codereview.chromium.org/2290743002/diff/20001/content/child/webthemeengine_impl_default.h File content/child/webthemeengine_impl_default.h (right): https://codereview.chromium.org/2290743002/diff/20001/content/child/webthemeengine_impl_default.h#newcode31 content/child/webthemeengine_impl_default.h:31: // Caches the scrollbar metrics. On 2016/08/29 20:40:35, Evan ...
4 years, 3 months ago (2016-08-29 20:45:29 UTC) #24
scottmg
oh, and +thakis for ui/gfx/win/singleton_hwnd.cc owners.
4 years, 3 months ago (2016-08-29 20:46:58 UTC) #26
esprehn
lgtm
4 years, 3 months ago (2016-08-29 20:50:02 UTC) #28
Nico
my file lgtm https://codereview.chromium.org/2290743002/diff/40001/ui/gfx/win/singleton_hwnd.cc File ui/gfx/win/singleton_hwnd.cc (right): https://codereview.chromium.org/2290743002/diff/40001/ui/gfx/win/singleton_hwnd.cc#newcode34 ui/gfx/win/singleton_hwnd.cc:34: LOG(FATAL) << "Cannot create windows on ...
4 years, 3 months ago (2016-08-29 20:52:41 UTC) #29
Bret
lgtm
4 years, 3 months ago (2016-08-29 21:17:20 UTC) #32
Evan Stade
lgtm
4 years, 3 months ago (2016-08-29 21:20:41 UTC) #33
scottmg
Thanks all for the quick reviews.
4 years, 3 months ago (2016-08-29 21:38:49 UTC) #35
scottmg
CQ says """ Missing LGTM from an OWNER for these files: content/common/view_messages.h """ ... I ...
4 years, 3 months ago (2016-08-29 22:28:14 UTC) #39
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/2290743002/40001
4 years, 3 months ago (2016-08-29 22:30:35 UTC) #40
scottmg
On 2016/08/29 22:28:14, scottmg wrote: > CQ says > > """ > Missing LGTM from ...
4 years, 3 months ago (2016-08-29 22:53:40 UTC) #42
scottmg
Sadly, I can't enable the LOG(FATAL) after all. Updated the CL description, and I'll tackle ...
4 years, 3 months ago (2016-08-30 00:07:56 UTC) #46
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/2290743002/100001
4 years, 3 months ago (2016-08-30 02:11:11 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/248729) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-08-30 03:42:46 UTC) #51
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/2290743002/110001
4 years, 3 months ago (2016-08-30 19:15:35 UTC) #55
commit-bot: I haz the power
Committed patchset #5 (id:110001)
4 years, 3 months ago (2016-08-30 20:55:01 UTC) #57
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 20:56:31 UTC) #59
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b92365ec08b7d2e96974df794dfb7a7f1ac347c8
Cr-Commit-Position: refs/heads/master@{#415420}

Powered by Google App Engine
This is Rietveld 408576698