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

Side by Side Diff: chrome/browser/browser_process_platform_part_mac.mm

Issue 591493002: Remove implicit conversions from scoped_refptr to T* in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatting Created 6 years, 3 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "chrome/browser/browser_process_platform_part_mac.h" 5 #include "chrome/browser/browser_process_platform_part_mac.h"
6 6
7 #include "chrome/browser/chrome_browser_application_mac.h" 7 #include "chrome/browser/chrome_browser_application_mac.h"
8 8
9 BrowserProcessPlatformPart::BrowserProcessPlatformPart() { 9 BrowserProcessPlatformPart::BrowserProcessPlatformPart() {
10 } 10 }
11 11
12 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { 12 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {
13 } 13 }
14 14
15 void BrowserProcessPlatformPart::StartTearDown() { 15 void BrowserProcessPlatformPart::StartTearDown() {
16 app_shim_host_manager_ = NULL; 16 app_shim_host_manager_ = NULL;
17 } 17 }
18 18
19 void BrowserProcessPlatformPart::AttemptExit() { 19 void BrowserProcessPlatformPart::AttemptExit() {
20 // On the Mac, the application continues to run once all windows are closed. 20 // On the Mac, the application continues to run once all windows are closed.
21 // Terminate will result in a CloseAllBrowsers() call, and once (and if) 21 // Terminate will result in a CloseAllBrowsers() call, and once (and if)
22 // that is done, will cause the application to exit cleanly. 22 // that is done, will cause the application to exit cleanly.
23 chrome_browser_application_mac::Terminate(); 23 chrome_browser_application_mac::Terminate();
24 } 24 }
25 25
26 void BrowserProcessPlatformPart::PreMainMessageLoopRun() { 26 void BrowserProcessPlatformPart::PreMainMessageLoopRun() {
27 // AppShimHostManager can not simply be reset, otherwise destroying the old 27 // AppShimHostManager can not simply be reset, otherwise destroying the old
28 // domain socket will cause the just-created socket to be unlinked. 28 // domain socket will cause the just-created socket to be unlinked.
29 DCHECK(!app_shim_host_manager_); 29 DCHECK(!app_shim_host_manager_.get());
30 app_shim_host_manager_ = new AppShimHostManager; 30 app_shim_host_manager_ = new AppShimHostManager;
31 } 31 }
32 32
33 AppShimHostManager* BrowserProcessPlatformPart::app_shim_host_manager() { 33 AppShimHostManager* BrowserProcessPlatformPart::app_shim_host_manager() {
34 return app_shim_host_manager_.get(); 34 return app_shim_host_manager_.get();
35 } 35 }
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/local_discovery/service_discovery_client_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698