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

Issue 1637203002: [MD] Don't use new OTR native-theming when using a custom browser theme. (Closed)

Created:
4 years, 11 months ago by Evan Stade
Modified:
4 years, 10 months ago
Reviewers:
sky
CC:
chromium-reviews, tdanderson+views_chromium.org, sadrul, tfarina, dcheng, kalyank, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MD] Don't use new OTR native-theming when using a custom browser theme. The location bar, omnibox, and find in page bar should look the same in incognito and normal windows if we're using a custom theme. Since changing to or from a custom theme can now affect the window's decision of which NativeTheme to use, we have to make GetNativeTheme() overrideable as well as propagate NativeTheme changes when the browser theme changes. BUG=581559 depends on http://crrev.com/1638063003#ps1 Committed: https://crrev.com/426c9fcce7a81e6e20dac1d4b2cc6fcda7aab510 Cr-Commit-Position: refs/heads/master@{#371990}

Patch Set 1 #

Patch Set 2 : desktop linux works too #

Total comments: 3

Patch Set 3 : todo done #

Total comments: 2

Patch Set 4 : move lifetime comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -50 lines) Patch
M chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc View 1 2 2 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 4 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 2 4 chunks +17 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 5 chunks +30 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
A chrome/browser/ui/views/theme_copying_widget.h View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/theme_copying_widget.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 2 3 chunks +1 line, -7 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 4 chunks +1 line, -4 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
Evan Stade
before, we decided to use an InitParams native theme because I didn't think a widget's ...
4 years, 11 months ago (2016-01-27 00:44:18 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637203002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637203002/20001
4 years, 11 months ago (2016-01-27 00:45:55 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-27 01:30:36 UTC) #6
sky
LGTM https://codereview.chromium.org/1637203002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc File chrome/browser/ui/views/frame/browser_root_view.cc (right): https://codereview.chromium.org/1637203002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc#newcode25 chrome/browser/ui/views/frame/browser_root_view.cc:25: #if defined(OS_LINUX) Do you really need these includes ...
4 years, 11 months ago (2016-01-27 03:07:31 UTC) #7
Evan Stade
https://codereview.chromium.org/1637203002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc File chrome/browser/ui/views/frame/browser_root_view.cc (right): https://codereview.chromium.org/1637203002/diff/20001/chrome/browser/ui/views/frame/browser_root_view.cc#newcode25 chrome/browser/ui/views/frame/browser_root_view.cc:25: #if defined(OS_LINUX) On 2016/01/27 03:07:31, sky wrote: > Do ...
4 years, 11 months ago (2016-01-28 00:08:44 UTC) #8
Evan Stade
also, did the TODO, ptal
4 years, 11 months ago (2016-01-28 00:09:11 UTC) #9
sky
LGTM https://codereview.chromium.org/1637203002/diff/40001/chrome/browser/ui/views/theme_copying_widget.h File chrome/browser/ui/views/theme_copying_widget.h (right): https://codereview.chromium.org/1637203002/diff/40001/chrome/browser/ui/views/theme_copying_widget.h#newcode20 chrome/browser/ui/views/theme_copying_widget.h:20: // The widget we'll copy our theme from. ...
4 years, 10 months ago (2016-01-28 00:58:18 UTC) #10
Evan Stade
https://codereview.chromium.org/1637203002/diff/40001/chrome/browser/ui/views/theme_copying_widget.h File chrome/browser/ui/views/theme_copying_widget.h (right): https://codereview.chromium.org/1637203002/diff/40001/chrome/browser/ui/views/theme_copying_widget.h#newcode20 chrome/browser/ui/views/theme_copying_widget.h:20: // The widget we'll copy our theme from. It's ...
4 years, 10 months ago (2016-01-28 01:47:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637203002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637203002/60001
4 years, 10 months ago (2016-01-28 02:19:13 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 10 months ago (2016-01-28 03:24:48 UTC) #19
commit-bot: I haz the power
4 years, 10 months ago (2016-01-28 03:25:47 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/426c9fcce7a81e6e20dac1d4b2cc6fcda7aab510
Cr-Commit-Position: refs/heads/master@{#371990}

Powered by Google App Engine
This is Rietveld 408576698