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

Issue 1461923002: Change name of NativeTheme::instance() to make it clear it's web only. (Closed)

Created:
5 years, 1 month ago by Evan Stade
Modified:
5 years ago
CC:
chromium-reviews, tim+watch_chromium.org, extensions-reviews_chromium.org, tdanderson+views_chromium.org, zea+watch_chromium.org, pvalenzuela+watch_chromium.org, rouslan+autofill_chromium.org, tfarina, maxbogue+watch_chromium.org, jam, dcheng, jdonnelly+autofillwatch_chromium.org, bondd+autofillwatch_chromium.org, darin-cc_chromium.org, plaree+watch_chromium.org, estade+watch_chromium.org, vabr+watchlistautofill_chromium.org, chromium-apps-reviews_chromium.org, Matt Giuca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change name of NativeTheme::instance() to make it clear it's web only. (e.g. for rendering blink controls) Remove almost all uses of NativeTheme::instance() throughout Chrome. For OSX it should be safe to just use NativeThemeMac::instance() in its place. For Views, views need to use GetNativeTheme() (after being added to a Widget). BUG=558029 Committed: https://crrev.com/66a425008f1da8e72274421285fd5bf8d8d78d6b Cr-Commit-Position: refs/heads/master@{#361434}

Patch Set 1 #

Total comments: 2

Patch Set 2 : self review #

Patch Set 3 : fix mac #

Patch Set 4 : fix build? #

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : test still failing? #

Patch Set 7 : NATIVE_THEME_EXPORT for mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -120 lines) Patch
M chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm View 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm View 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.mm View 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/screen_capture_notification_ui_cocoa.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/spinner_view.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/profile_signin_confirmation_helper.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/sync/profile_signin_confirmation_helper.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/exclusive_access_bubble_views.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 3 chunks +13 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 2 3 4 2 chunks +3 lines, -6 lines 0 comments Download
M components/html_viewer/web_theme_engine_impl.cc View 3 chunks +7 lines, -15 lines 0 comments Download
M content/child/webthemeengine_impl_android.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M content/child/webthemeengine_impl_default.cc View 3 chunks +7 lines, -15 lines 0 comments Download
M ui/native_theme/native_theme.h View 1 chunk +7 lines, -6 lines 0 comments Download
M ui/native_theme/native_theme.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ui/native_theme/native_theme_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_aura.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_aurawin.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_mac.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M ui/native_theme/native_theme_mac_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/button_drag_utils.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/link.cc View 1 2 3 4 5 2 chunks +4 lines, -10 lines 0 comments Download
M ui/views/controls/menu/menu_config_aura.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M ui/views/controls/menu/menu_config_mac.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/scrollbar/native_scroll_bar_views.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M ui/views/controls/styled_label_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/views/widget/native_widget_mac.mm View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 41 (19 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/20001
5 years, 1 month ago (2015-11-19 03:06:13 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/40001
5 years, 1 month ago (2015-11-19 03:29:29 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/125206)
5 years, 1 month ago (2015-11-19 04:00:14 UTC) #7
Evan Stade
Sadrul, could you take a look at ui/ before I ask for OWNERS reviews from ...
5 years, 1 month ago (2015-11-19 23:29:14 UTC) #9
sadrul
--> sky@ would be a better reviewer for this.
5 years, 1 month ago (2015-11-20 18:06:09 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/80001
5 years, 1 month ago (2015-11-20 21:26:55 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/126229)
5 years, 1 month ago (2015-11-20 22:04:37 UTC) #15
sky
https://codereview.chromium.org/1461923002/diff/80001/ui/native_theme/native_theme.h File ui/native_theme/native_theme.h (right): https://codereview.chromium.org/1461923002/diff/80001/ui/native_theme/native_theme.h#newcode353 ui/native_theme/native_theme.h:353: static NativeTheme* GetInstanceForWeb(); Is it possible to remove this ...
5 years, 1 month ago (2015-11-20 22:09:04 UTC) #16
Evan Stade
https://codereview.chromium.org/1461923002/diff/80001/ui/native_theme/native_theme.h File ui/native_theme/native_theme.h (right): https://codereview.chromium.org/1461923002/diff/80001/ui/native_theme/native_theme.h#newcode353 ui/native_theme/native_theme.h:353: static NativeTheme* GetInstanceForWeb(); On 2015/11/20 22:09:04, sky wrote: > ...
5 years, 1 month ago (2015-11-20 22:23:45 UTC) #17
sky
LGTM
5 years, 1 month ago (2015-11-22 16:01:48 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/100001
5 years, 1 month ago (2015-11-23 19:29:19 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/126910)
5 years, 1 month ago (2015-11-23 20:12:51 UTC) #22
Evan Stade
+avi for content/
5 years, 1 month ago (2015-11-23 21:14:16 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/120001
5 years, 1 month ago (2015-11-23 21:15:40 UTC) #26
Avi (use Gerrit)
lgtm
5 years, 1 month ago (2015-11-23 22:35:36 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/120001
5 years, 1 month ago (2015-11-23 22:41:34 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133094)
5 years, 1 month ago (2015-11-23 23:55:44 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/120001
5 years, 1 month ago (2015-11-24 02:40:27 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/133421)
5 years, 1 month ago (2015-11-24 04:14:53 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1461923002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1461923002/120001
5 years ago (2015-11-24 20:08:41 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years ago (2015-11-24 20:41:49 UTC) #40
commit-bot: I haz the power
5 years ago (2015-11-24 20:42:50 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/66a425008f1da8e72274421285fd5bf8d8d78d6b
Cr-Commit-Position: refs/heads/master@{#361434}

Powered by Google App Engine
This is Rietveld 408576698