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

Side by Side Diff: chromecast/shell/browser/cast_browser_main_parts.cc

Issue 610503002: Chromecast: always enable "Media" blink logging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added one space (style) Created 6 years, 2 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
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698