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

Unified Diff: chrome/browser/notifications/desktop_notification_service_win.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
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/desktop_notification_service_win.cc
diff --git a/chrome/browser/notifications/desktop_notification_service_win.cc b/chrome/browser/notifications/desktop_notification_service_win.cc
index 7f9035b6854db7dfd14eecfdcd6634969192d1a6..473eef67802b04e08b935eb3471fefef6ccf7c2c 100644
--- a/chrome/browser/notifications/desktop_notification_service_win.cc
+++ b/chrome/browser/notifications/desktop_notification_service_win.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/notifications/notification_object_proxy.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
+#include "win8/util/win8_util.h"
typedef void (*MetroDisplayNotification)(
const char* origin_url, const char* icon_url, const wchar_t* title,
@@ -23,7 +24,7 @@ bool DesktopNotificationService::CancelDesktopNotification(
scoped_refptr<NotificationObjectProxy> proxy(
new NotificationObjectProxy(process_id, route_id, notification_id,
false));
- if (base::win::IsMetroProcess()) {
+ if (win8::IsSingleWindowMetroMode()) {
MetroCancelNotification cancel_metro_notification =
reinterpret_cast<MetroCancelNotification>(GetProcAddress(
base::win::GetMetroModule(), "CancelNotification"));
@@ -36,7 +37,7 @@ bool DesktopNotificationService::CancelDesktopNotification(
void DesktopNotificationService::ShowNotification(
const Notification& notification) {
- if (base::win::IsMetroProcess()) {
+ if (win8::IsSingleWindowMetroMode()) {
MetroDisplayNotification display_metro_notification =
reinterpret_cast<MetroDisplayNotification>(GetProcAddress(
base::win::GetMetroModule(), "DisplayNotification"));
« no previous file with comments | « chrome/browser/extensions/extension_prefs.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698