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

Issue 10914119: Prime the Windows theme DLL earlier. (Closed)

Created:
8 years, 3 months ago by MAD
Modified:
8 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Prime the Windows theme DLL earlier. On Windows 8, we need to check if we are touch-enabled before we load our resources, and this happens before the code to prime the theme DLL gets executed. Since checking for touch-enable requires a call into the theme dll, it didn't get properly initialized in the render process... So moving this code to be done earlier was required... At the same time, I changed the code a bit to rely on the current window station to no be WinSta0 to decide whether we need to do this or not, as opposed to looking at the sandbox state. BUG=139241 TEST=Make sure we always get the proper theme for UI controls like scrollbars. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=156232

Patch Set 1 #

Total comments: 13

Patch Set 2 : Addressed Robert's nits. #

Patch Set 3 : Simplified name check, and also not renderer specific anymore. #

Patch Set 4 : Using InputDesktop instead #

Total comments: 6

Patch Set 5 : Fixing owners nit... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -46 lines) Patch
M content/app/content_main_runner.cc View 1 2 3 4 3 chunks +56 lines, -0 lines 0 comments Download
M content/renderer/renderer_main_platform_delegate_win.cc View 2 chunks +0 lines, -46 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
MAD
Thanks! BYE MAD...
8 years, 3 months ago (2012-09-06 15:48:30 UTC) #1
cpu_(ooo_6.6-7.5)
Adding Ricardo.
8 years, 3 months ago (2012-09-06 18:15:08 UTC) #2
robertshield
nits and the like https://chromiumcodereview.appspot.com/10914119/diff/1/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://chromiumcodereview.appspot.com/10914119/diff/1/content/app/content_main_runner.cc#newcode111 content/app/content_main_runner.cc:111: static_buffer[0] = '\0'; char static_buffer[kStaticBufferLength] ...
8 years, 3 months ago (2012-09-06 18:35:56 UTC) #3
cpu_(ooo_6.6-7.5)
The winsta checking code seems very weird here, given that we only need to determine ...
8 years, 3 months ago (2012-09-06 21:37:21 UTC) #4
MAD
Well... This is what I said in another email, I wonder why we need to ...
8 years, 3 months ago (2012-09-06 21:44:58 UTC) #5
rvargas (doing something else)
The old code was simpler :( Why not just always set the window station? http://codereview.chromium.org/10914119/diff/1/content/app/content_main_runner.cc ...
8 years, 3 months ago (2012-09-06 23:19:20 UTC) #6
MAD
I was trying to avoid doing it when we don't need to do it... If ...
8 years, 3 months ago (2012-09-06 23:38:19 UTC) #7
MAD
How about this for the nits? We still need to decide whether we want to ...
8 years, 3 months ago (2012-09-06 23:57:53 UTC) #8
cpu_(ooo_6.6-7.5)
I am happy with either 1) the way it was (function takes a bool) or ...
8 years, 3 months ago (2012-09-07 00:32:48 UTC) #9
MAD
Thanks for the info... But I don't think I agree... Here's why: What I don't ...
8 years, 3 months ago (2012-09-10 16:26:14 UTC) #10
MAD
(more details below) OK, so we have 3 options now: 1. Always set the window ...
8 years, 3 months ago (2012-09-10 19:44:08 UTC) #11
MAD
Ping? Are you guys OK with this version? As mentioned before, I prefer to test ...
8 years, 3 months ago (2012-09-11 18:28:28 UTC) #12
cpu_(ooo_6.6-7.5)
I like the OpenInputDesktop version. Checking for strings is not great.
8 years, 3 months ago (2012-09-11 20:44:01 UTC) #13
MAD
Like this then?
8 years, 3 months ago (2012-09-11 21:03:16 UTC) #14
cpu_(ooo_6.6-7.5)
lgtm
8 years, 3 months ago (2012-09-12 00:21:25 UTC) #15
MAD
Ho, cool... Jam@, do you agree as an owner? thanks!
8 years, 3 months ago (2012-09-12 00:29:48 UTC) #16
MAD
Ho, cool... Jam@, do you agree as an owner? thanks!
8 years, 3 months ago (2012-09-12 00:29:51 UTC) #17
robertshield
lgtm
8 years, 3 months ago (2012-09-12 00:29:56 UTC) #18
jam
lgtm with nits http://codereview.chromium.org/10914119/diff/7/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): http://codereview.chromium.org/10914119/diff/7/content/app/content_main_runner.cc#newcode59 content/app/content_main_runner.cc:59: #include <string> nit: this is very ...
8 years, 3 months ago (2012-09-12 00:36:05 UTC) #19
MAD
Cool... Done... Thanks! CQ'ing... BYE MAD https://chromiumcodereview.appspot.com/10914119/diff/7/content/app/content_main_runner.cc File content/app/content_main_runner.cc (right): https://chromiumcodereview.appspot.com/10914119/diff/7/content/app/content_main_runner.cc#newcode59 content/app/content_main_runner.cc:59: #include <string> On ...
8 years, 3 months ago (2012-09-12 02:10:01 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mad@chromium.org/10914119/9007
8 years, 3 months ago (2012-09-12 02:10:59 UTC) #21
commit-bot: I haz the power
8 years, 3 months ago (2012-09-12 04:12:53 UTC) #22
Change committed as 156232

Powered by Google App Engine
This is Rietveld 408576698