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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r170746 Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index 9e182989d2bdd0ff756e523be7dbbf2bd9de40c3..ee5f3e4e35213a20e50a493df8e79d330004c38d 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -1742,7 +1742,7 @@ LRESULT OmniboxViewWin::OnMouseActivate(HWND window,
if (gaining_focus_) {
// On Windows 8 in metro mode, we get two WM_MOUSEACTIVATE messages when
// we click on the omnibox with the mouse.
- DCHECK(base::win::IsMetroProcess());
+ DCHECK(win8::IsSingleWindowMetroMode());
cpu_(ooo_6.6-7.5) 2012/12/03 20:56:26 not familiar with this change, again consider this
gab 2012/12/04 00:19:06 This was added by ananta in https://codereview.chr
cpu_(ooo_6.6-7.5) 2012/12/04 01:17:39 Like I said, all other things equal you should pre
gab 2012/12/04 18:47:42 Ok, leaving out for now.
gab 2012/12/04 19:04:31 Reconsidered, leaving it in since this file isn't
return result;
}
gaining_focus_.reset(new ScopedFreeze(this, GetTextObjectModel()));

Powered by Google App Engine
This is Rietveld 408576698