OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/shell/browser/cast_browser_main_parts.h" | 5 #include "chromecast/shell/browser/cast_browser_main_parts.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/prefs/pref_registry_simple.h" | 9 #include "base/prefs/pref_registry_simple.h" |
10 #include "chromecast/common/chromecast_config.h" | 10 #include "chromecast/common/chromecast_config.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 namespace { | 30 namespace { |
31 | 31 |
32 struct DefaultCommandLineSwitch { | 32 struct DefaultCommandLineSwitch { |
33 const char* const switch_name; | 33 const char* const switch_name; |
34 const char* const switch_value; | 34 const char* const switch_value; |
35 }; | 35 }; |
36 | 36 |
37 DefaultCommandLineSwitch g_default_switches[] = { | 37 DefaultCommandLineSwitch g_default_switches[] = { |
38 { switches::kDisableApplicationCache, "" }, | 38 { switches::kDisableApplicationCache, "" }, |
39 { switches::kDisablePlugins, "" }, | 39 { switches::kDisablePlugins, "" }, |
| 40 // Always enable HTMLMediaElement logs. |
| 41 { switches::kBlinkPlatformLogChannels, "Media"}, |
40 { NULL, NULL }, // Termination | 42 { NULL, NULL }, // Termination |
41 }; | 43 }; |
42 | 44 |
43 void AddDefaultCommandLineSwitches(CommandLine* command_line) { | 45 void AddDefaultCommandLineSwitches(CommandLine* command_line) { |
44 int i = 0; | 46 int i = 0; |
45 while (g_default_switches[i].switch_name != NULL) { | 47 while (g_default_switches[i].switch_name != NULL) { |
46 command_line->AppendSwitchASCII( | 48 command_line->AppendSwitchASCII( |
47 std::string(g_default_switches[i].switch_name), | 49 std::string(g_default_switches[i].switch_name), |
48 std::string(g_default_switches[i].switch_value)); | 50 std::string(g_default_switches[i].switch_value)); |
49 ++i; | 51 ++i; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 return true; | 120 return true; |
119 } | 121 } |
120 | 122 |
121 void CastBrowserMainParts::PostMainMessageLoopRun() { | 123 void CastBrowserMainParts::PostMainMessageLoopRun() { |
122 cast_browser_process_->cast_service()->Stop(); | 124 cast_browser_process_->cast_service()->Stop(); |
123 cast_browser_process_.reset(); | 125 cast_browser_process_.reset(); |
124 } | 126 } |
125 | 127 |
126 } // namespace shell | 128 } // namespace shell |
127 } // namespace chromecast | 129 } // namespace chromecast |
OLD | NEW |