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

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

Issue 468223004: Chromecast: disables application cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actual rebase (git was within a couple minutes behind) :( Created 6 years, 4 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 | « no previous file | 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/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "chromecast/common/chromecast_config.h" 9 #include "chromecast/common/chromecast_config.h"
10 #include "chromecast/net/network_change_notifier_cast.h" 10 #include "chromecast/net/network_change_notifier_cast.h"
11 #include "chromecast/net/network_change_notifier_factory_cast.h" 11 #include "chromecast/net/network_change_notifier_factory_cast.h"
12 #include "chromecast/service/cast_service.h" 12 #include "chromecast/service/cast_service.h"
13 #include "chromecast/shell/browser/cast_browser_context.h" 13 #include "chromecast/shell/browser/cast_browser_context.h"
14 #include "chromecast/shell/browser/devtools/remote_debugging_server.h" 14 #include "chromecast/shell/browser/devtools/remote_debugging_server.h"
15 #include "chromecast/shell/browser/url_request_context_factory.h" 15 #include "chromecast/shell/browser/url_request_context_factory.h"
16 #include "chromecast/shell/browser/webui/webui_cast.h" 16 #include "chromecast/shell/browser/webui/webui_cast.h"
17 #include "content/public/common/content_switches.h"
17 18
18 namespace chromecast { 19 namespace chromecast {
19 namespace shell { 20 namespace shell {
20 21
21 namespace { 22 namespace {
22 23
23 struct DefaultCommandLineSwitch { 24 struct DefaultCommandLineSwitch {
24 const char* const switch_name; 25 const char* const switch_name;
25 const char* const switch_value; 26 const char* const switch_value;
26 }; 27 };
27 28
28 DefaultCommandLineSwitch g_default_switches[] = { 29 DefaultCommandLineSwitch g_default_switches[] = {
29 { "enable-webrtc-hw-decoding", "" }, 30 { switches::kDisableApplicationCache, "" },
30 { "disable-plugins", "" }, 31 { switches::kDisablePlugins, "" },
31 { "enable-threaded-compositing", "" },
32 { NULL, NULL }, // Termination 32 { NULL, NULL }, // Termination
33 }; 33 };
34 34
35 void AddDefaultCommandLineSwitches(CommandLine* command_line) { 35 void AddDefaultCommandLineSwitches(CommandLine* command_line) {
36 int i = 0; 36 int i = 0;
37 while (g_default_switches[i].switch_name != NULL) { 37 while (g_default_switches[i].switch_name != NULL) {
38 command_line->AppendSwitchASCII( 38 command_line->AppendSwitchASCII(
39 std::string(g_default_switches[i].switch_name), 39 std::string(g_default_switches[i].switch_name),
40 std::string(g_default_switches[i].switch_value)); 40 std::string(g_default_switches[i].switch_value));
41 ++i; 41 ++i;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void CastBrowserMainParts::PostMainMessageLoopRun() { 90 void CastBrowserMainParts::PostMainMessageLoopRun() {
91 cast_service_->Stop(); 91 cast_service_->Stop();
92 92
93 cast_service_.reset(); 93 cast_service_.reset();
94 dev_tools_.reset(); 94 dev_tools_.reset();
95 browser_context_.reset(); 95 browser_context_.reset();
96 } 96 }
97 97
98 } // namespace shell 98 } // namespace shell
99 } // namespace chromecast 99 } // namespace chromecast
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698