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

Side by Side Diff: chrome/browser/media/router/media_router_feature.cc

Issue 1415333002: [Media Router] Add experiment control logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/media/router/media_router_feature.h"
6
7 #include "build/build_config.h"
8
9 #if defined(ENABLE_EXTENSIONS)
10 #include "extensions/common/feature_switch.h"
11 #endif
12
13 namespace media_router {
14
15 bool MediaRouterEnabled() {
16 #if defined(ENABLE_MEDIA_ROUTER)
17 #if defined(OS_ANDROID)
18 return true;
19 #elif defined(ENABLE_EXTENSIONS)
20 return extensions::FeatureSwitch::media_router()->IsEnabled();
21 #else // !defined(ENABLE_EXTENSIONS)
22 return false;
23 #endif // defined(OS_ANDROID)
24 #else // !defined(ENABLE_MEDIA_ROUTER)
25 return false;
26 #endif // defined(ENABLE_MEDIA_ROUTER)
27 }
28
29 } // namespace media_router
OLDNEW
« no previous file with comments | « chrome/browser/media/router/media_router_feature.h ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698