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

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 2794103002: Add initial support for native Linux desktop notifications (Closed)
Patch Set: Refactor, move impl to chrome/browser/notifications Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_switches.h" 5 #include "chrome/common/chrome_switches.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 1163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1174 #endif 1174 #endif
1175 } 1175 }
1176 1176
1177 #if defined(OS_CHROMEOS) 1177 #if defined(OS_CHROMEOS)
1178 bool PowerOverlayEnabled() { 1178 bool PowerOverlayEnabled() {
1179 return base::CommandLine::ForCurrentProcess()->HasSwitch( 1179 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1180 ::switches::kEnablePowerOverlay); 1180 ::switches::kEnablePowerOverlay);
1181 } 1181 }
1182 #endif 1182 #endif
1183 1183
1184 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1185 // Send notifications to the notification center supplied by the Linux
1186 // desktop environment instead of using Chrome-rendered notifications.
1187 const char kUseSystemNotifications[] = "use-system-notifications";
1188 #endif
1189
1184 // ----------------------------------------------------------------------------- 1190 // -----------------------------------------------------------------------------
1185 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. 1191 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE.
1186 // 1192 //
1187 // You were going to just dump your switches here, weren't you? Instead, please 1193 // You were going to just dump your switches here, weren't you? Instead, please
1188 // put them in alphabetical order above, or in order inside the appropriate 1194 // put them in alphabetical order above, or in order inside the appropriate
1189 // ifdef at the bottom. The order should match the header. 1195 // ifdef at the bottom. The order should match the header.
1190 // ----------------------------------------------------------------------------- 1196 // -----------------------------------------------------------------------------
1191 1197
1192 } // namespace switches 1198 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698