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

Unified Diff: chrome/browser/notifications/desktop_notification_service_win.cc

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 6 months 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/first_run/upgrade_util_win.cc ('k') | chrome/browser/profiles/profile_manager.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 3f9bd29f8d3277a936e4866bbc98fef09ab5dccc..7f9035b6854db7dfd14eecfdcd6634969192d1a6 100644
--- a/chrome/browser/notifications/desktop_notification_service_win.cc
+++ b/chrome/browser/notifications/desktop_notification_service_win.cc
@@ -23,7 +23,7 @@ bool DesktopNotificationService::CancelDesktopNotification(
scoped_refptr<NotificationObjectProxy> proxy(
new NotificationObjectProxy(process_id, route_id, notification_id,
false));
- if (base::win::GetMetroModule()) {
+ if (base::win::IsMetroProcess()) {
MetroCancelNotification cancel_metro_notification =
reinterpret_cast<MetroCancelNotification>(GetProcAddress(
base::win::GetMetroModule(), "CancelNotification"));
@@ -36,7 +36,7 @@ bool DesktopNotificationService::CancelDesktopNotification(
void DesktopNotificationService::ShowNotification(
const Notification& notification) {
- if (base::win::GetMetroModule()) {
+ if (base::win::IsMetroProcess()) {
MetroDisplayNotification display_metro_notification =
reinterpret_cast<MetroDisplayNotification>(GetProcAddress(
base::win::GetMetroModule(), "DisplayNotification"));
« no previous file with comments | « chrome/browser/first_run/upgrade_util_win.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698