Commit 679a5f26 authored by Lan Wei's avatar Lan Wei Committed by Commit Bot

Use a valid ChromeOS #define in MediaNotificationServiceFactory

MediaNotificationServiceFactory uses a non-existent #define for
ChromeOS, defined(CHROME_OS), we should replace it with
defined(OS_CHROMEOS).

Bug: 1121653
Change-Id: Idd748e7e49c9b2bdc675ae55f1c2b49a6c5ee28b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2436169Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Lan Wei <lanwei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#811522}
parent 3f10e54a
...@@ -35,7 +35,7 @@ MediaNotificationService* MediaNotificationServiceFactory::GetForProfile( ...@@ -35,7 +35,7 @@ MediaNotificationService* MediaNotificationServiceFactory::GetForProfile(
KeyedService* MediaNotificationServiceFactory::BuildServiceInstanceFor( KeyedService* MediaNotificationServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { content::BrowserContext* context) const {
bool show_from_all_profiles = false; bool show_from_all_profiles = false;
#if defined(CHROME_OS) #if defined(OS_CHROMEOS)
show_from_all_profiles = true; show_from_all_profiles = true;
#endif #endif
return new MediaNotificationService(Profile::FromBrowserContext(context), return new MediaNotificationService(Profile::FromBrowserContext(context),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment