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

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed)

Created:
8 years ago by gab
Modified:
7 years, 10 months ago
CC:
chromium-reviews, jam, jennb, yusukes+watch_chromium.org, marja+watch_chromium.org, tfarina, browser-components-watch_chromium.org, Dmitry Titov, dcheng, penghuang+watch_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, jianli, rdsmith+dwatch_chromium.org, chromium-apps-reviews_chromium.org, James Su, yoshiki+watch_chromium.org, grt (UTC plus 2)
Visibility:
Public.

Description

Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). Many things were calling IsMetroProcess() when the intent was really to turn things ON/OFF for Metro Chrome, this does not apply to Metro Ash however. Details of how this has been decoupled can be found at https://docs.google.com/spreadsheet/ccc?key=0AtwXJ4IPPZBAdEdaWUpLYk9IM3I1bTJleFJobXN3Z2c (more decoupling will be needed later and has been listed in separate columns on this spreadsheet; however for now this CL only applies the first column). Also introduces win8_util where some other win8-specific things currently in base should eventually also be refactored into. BUG=151718 TEST=This makes a bunch of things just work now in Metro Ash :). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171366

Patch Set 1 #

Patch Set 2 : merge up to r170746 #

Total comments: 36

Patch Set 3 : add win8_util dependency to printing/ #

Patch Set 4 : initial comments #

Patch Set 5 : cpu's comments #

Patch Set 6 : win8_util dependency only on Windows #

Patch Set 7 : win8_util dependency in content_browser.gypi #

Patch Set 8 : re-add omnibox_view_win.cc modification since it's excluded from aura builds #

Patch Set 9 : keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -117 lines) Patch
M chrome/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_manager_extension_api.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/download/download_status_updater_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_prefs.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service_win.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sessions/session_restore.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_win.cc View 1 2 3 4 2 chunks +25 lines, -34 lines 0 comments Download
M chrome/browser/ui/extensions/application_launch.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/panels/panel_manager.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_win.cc View 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views_win.cc View 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 7 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 6 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/hung_renderer_view_win.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_icon_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/status_icons/status_tray_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/render_view_context_menu_win.cc View 4 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M printing/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M printing/print_destination_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
M printing/printing.gyp View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M printing/printing_context_win.cc View 2 chunks +2 lines, -1 line 0 comments Download
A win8/util/win8_util.h View 1 chunk +18 lines, -0 lines 0 comments Download
A win8/util/win8_util.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M win8/win8.gyp View 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
gab
cpu/robertshield: Please review the spreadsheet and matching code of which features are affected by this ...
8 years ago (2012-11-30 18:06:15 UTC) #1
robertshield
builders look unhappy, couple of nits https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/views/frame/browser_view.cc#newcode140 chrome/browser/ui/views/frame/browser_view.cc:140: #elif defined(OS_WIN) I ...
8 years ago (2012-12-03 19:48:47 UTC) #2
cpu_(ooo_6.6-7.5)
Overall I like the change, there are a few issues: 0- This changes is big ...
8 years ago (2012-12-03 20:56:26 UTC) #3
gab
>Overall I like the change, there are a few issues: > 0- This changes is ...
8 years ago (2012-12-04 00:19:06 UTC) #4
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/browser_win.cc File chrome/browser/ui/browser_win.cc (right): https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/browser_win.cc#newcode67 chrome/browser/ui/browser_win.cc:67: It is related. You are adding code that can ...
8 years ago (2012-12-04 01:00:51 UTC) #5
cpu_(ooo_6.6-7.5)
>> Don't we want to build an Ash equivalent for them if there >> isn't ...
8 years ago (2012-12-04 01:11:19 UTC) #6
cpu_(ooo_6.6-7.5)
https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc File chrome/browser/ui/views/omnibox/omnibox_view_win.cc (right): https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc#newcode1745 chrome/browser/ui/views/omnibox/omnibox_view_win.cc:1745: DCHECK(win8::IsSingleWindowMetroMode()); Like I said, all other things equal you ...
8 years ago (2012-12-04 01:17:38 UTC) #7
gab
Addressed comments, PTAL. Thanks, Gab https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/browser_win.cc File chrome/browser/ui/browser_win.cc (right): https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/browser_win.cc#newcode67 chrome/browser/ui/browser_win.cc:67: On 2012/12/04 01:00:51, cpu ...
8 years ago (2012-12-04 18:47:42 UTC) #8
gab
See comment below. https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc File chrome/browser/ui/views/omnibox/omnibox_view_win.cc (right): https://codereview.chromium.org/11411286/diff/3001/chrome/browser/ui/views/omnibox/omnibox_view_win.cc#newcode1745 chrome/browser/ui/views/omnibox/omnibox_view_win.cc:1745: DCHECK(win8::IsSingleWindowMetroMode()); On 2012/12/04 18:47:42, gab wrote: ...
8 years ago (2012-12-04 19:04:31 UTC) #9
cpu_(ooo_6.6-7.5)
lgtm
8 years ago (2012-12-04 21:39:38 UTC) #10
robertshield
lgtm
8 years ago (2012-12-04 21:54:49 UTC) #11
gab
Thanks, @brettw for chrome/ and content/ OWNER approval. @gene for printing/ OWNER approval. Cheers! Gab
8 years ago (2012-12-04 22:07:39 UTC) #12
brettw
lgtm
8 years ago (2012-12-05 19:16:46 UTC) #13
gene
lgtm
8 years ago (2012-12-05 20:35:40 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11411286/80
8 years ago (2012-12-05 20:38:57 UTC) #15
commit-bot: I haz the power
Change committed as 171366
8 years ago (2012-12-06 00:40:35 UTC) #16
Dirk Pranke
On 2012/12/06 00:40:35, I haz the power (commit-bot) wrote: > Change committed as 171366 This ...
7 years, 10 months ago (2013-02-14 22:27:42 UTC) #17
gab
I don't think this CL introduced this, but rather https://chromiumcodereview.appspot.com/12096064
7 years, 10 months ago (2013-02-15 04:12:43 UTC) #18
Dirk Pranke
7 years, 10 months ago (2013-02-15 20:50:55 UTC) #19
Message was sent while issue was closed.
On 2013/02/15 04:12:43, gab wrote:
> I don't think this CL introduced this, but rather
> https://chromiumcodereview.appspot.com/12096064

Oh, you're right, I read the blame log wrong. Sorry!

Powered by Google App Engine
This is Rietveld 408576698