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

Issue 10560015: Implement base::win::IsMetroProcess. (Closed)

Created:
8 years, 6 months ago by Sigurður Ásgeirsson
Modified:
8 years, 6 months ago
Reviewers:
Mark Mentovai, ananta
CC:
chrome-win8-eng_google.com, chromium-reviews, Avi (use Gerrit), mihaip-chromium-reviews_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, jochen+watch-content_chromium.org, tfarina, erikwright (departed), ajwong+watch_chromium.org, yoshiki+watch_chromium.org, penghuang+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, rginda+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, James Su
Visibility:
Public.

Description

Implement base::win::IsMetroProcess. Change GetMetroModule callers that don't need the HMODULE. TBR=stevenjb@chromium.org,brettw@chromium.org,mirandac@chromium.org,sky@chromium.org,kalman@chromium.org BUG=None TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142801

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address Ananta's comments. #

Total comments: 1

Patch Set 3 : Rename InMetroMode to IsMetroProcess. Cache and DCHECK in GetMetroModule. #

Total comments: 6

Patch Set 4 : Address Mark's comments. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -32 lines) Patch
M base/win/metro.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M base/win/metro.cc View 1 2 3 1 chunk +56 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_manager_extension_api.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/first_run/upgrade_util_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_context_menu_controller_views_win.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_paths_win.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pepper_flash.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/base/layout.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/native_textfield_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/npapi/plugin_list_win.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Sigurður Ásgeirsson
Please take a look. Ananta please look at the implementation. I've TBR-ed owners as this ...
8 years, 6 months ago (2012-06-15 21:31:53 UTC) #1
ananta
LGTM https://chromiumcodereview.appspot.com/10560015/diff/1/base/win/metro.cc File base/win/metro.cc (right): https://chromiumcodereview.appspot.com/10560015/diff/1/base/win/metro.cc#newcode42 base/win/metro.cc:42: state = kImmersiveTrue; add a DCHECK(GetMetroModule() != NULL) ...
8 years, 6 months ago (2012-06-15 21:46:19 UTC) #2
Sigurður Ásgeirsson
The assert you asked for seems to be firing inside renderers. Using IsImmersiveProcess will change ...
8 years, 6 months ago (2012-06-18 13:54:15 UTC) #3
robertshield
On 2012/06/18 13:54:15, Sigurður Ásgeirsson wrote: > The assert you asked for seems to be ...
8 years, 6 months ago (2012-06-18 15:06:39 UTC) #4
Sigurður Ásgeirsson
Renamed InMetroMode to IsMetroProcess, implemented caching and a DCHECK in GetMetroModule. Please take another quick ...
8 years, 6 months ago (2012-06-18 15:23:17 UTC) #5
Sigurður Ásgeirsson
Mark, can you please review and approve base change as owner there? The rest is ...
8 years, 6 months ago (2012-06-18 15:26:12 UTC) #6
Mark Mentovai
LGTM for base OWNERS approval, but for code review purposes I have an optional but ...
8 years, 6 months ago (2012-06-18 15:40:22 UTC) #7
Sigurður Ásgeirsson
Thanks, addressed your comments. https://chromiumcodereview.appspot.com/10560015/diff/3002/base/win/metro.cc File base/win/metro.cc (right): https://chromiumcodereview.appspot.com/10560015/diff/3002/base/win/metro.cc#newcode15 base/win/metro.cc:15: const HMODULE kNoMetroDriver = reinterpret_cast<HMODULE>(1); ...
8 years, 6 months ago (2012-06-18 18:51:13 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/10560015/3030
8 years, 6 months ago (2012-06-18 18:52:46 UTC) #9
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/toolbar/wrench_menu_model.cc: While running patch -p1 --forward --force; patching file chrome/browser/ui/toolbar/wrench_menu_model.cc ...
8 years, 6 months ago (2012-06-18 18:52:54 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/siggi@chromium.org/10560015/2005
8 years, 6 months ago (2012-06-18 19:14:14 UTC) #11
commit-bot: I haz the power
8 years, 6 months ago (2012-06-18 20:40:08 UTC) #12
Change committed as 142801

Powered by Google App Engine
This is Rietveld 408576698