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

Side by Side Diff: chromecast/browser/service/cast_service_simple.cc

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common 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/browser/service/cast_service_simple.h ('k') | chromecast/browser/test/DEPS » ('j') | 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/service/cast_service_simple.h" 5 #include "chromecast/browser/service/cast_service_simple.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 #include "net/base/filename_util.h" 12 #include "net/base/filename_util.h"
13 #include "net/url_request/url_request_context_getter.h" 13 #include "net/url_request/url_request_context_getter.h"
14 #include "ui/aura/env.h" 14 #include "ui/aura/env.h"
15 #include "ui/aura/layout_manager.h" 15 #include "ui/aura/layout_manager.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 void CastServiceSimple::StopInternal() { 128 void CastServiceSimple::StopInternal() {
129 web_contents_->GetRenderViewHost()->ClosePage(); 129 web_contents_->GetRenderViewHost()->ClosePage();
130 window_tree_host_.reset(); 130 window_tree_host_.reset();
131 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, NULL); 131 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, NULL);
132 aura::Env::DeleteInstance(); 132 aura::Env::DeleteInstance();
133 web_contents_.reset(); 133 web_contents_.reset();
134 } 134 }
135 135
136 } // namespace chromecast 136 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/service/cast_service_simple.h ('k') | chromecast/browser/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698