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

Unified Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 11411286: Decouple IsMetroProcess() calls, introducing IsSingleWindowMetroMode(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: keep base/win/metro.h in omnibox_view_win.cc for IsTSFAwareRequired() 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/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index 7e39d6692139142c8a6e172629f7dbe4a91b7a60..a2f5be5b729aba9b499388e312187640ab010729 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -45,7 +45,7 @@
#include "ui/views/window/non_client_view.h"
#if defined(OS_WIN)
-#include "base/win/metro.h"
+#include "win8/util/win8_util.h"
#endif
#if defined(USE_ASH)
@@ -1131,7 +1131,7 @@ void Tab::PaintInactiveTabBackground(gfx::Canvas* canvas) {
} else if (data().incognito) {
tab_id = IDR_THEME_TAB_BACKGROUND_INCOGNITO;
#if defined(OS_WIN)
- } else if (base::win::IsMetroProcess()) {
+ } else if (win8::IsSingleWindowMetroMode()) {
tab_id = IDR_THEME_TAB_BACKGROUND_V;
#endif
} else {
« no previous file with comments | « chrome/browser/ui/views/tab_contents/render_view_context_menu_win.cc ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698