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

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

Issue 2866034: Refactor shutdown code to allow win/linux to run after last browser closes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Uploaded patch that resolves merge issue Created 10 years, 5 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 | « chrome/browser/browser_list_win.cc ('k') | chrome/browser/browser_process_impl.cc » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_main.h" 5 #include "chrome/browser/browser_main.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "app/app_switches.h" 9 #include "app/app_switches.h"
10 #include "app/l10n_util_mac.h" 10 #include "app/l10n_util_mac.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // Prevent Cocoa from turning command-line arguments into 71 // Prevent Cocoa from turning command-line arguments into
72 // |-application:openFiles:|, since we already handle them directly. 72 // |-application:openFiles:|, since we already handle them directly.
73 [[NSUserDefaults standardUserDefaults] 73 [[NSUserDefaults standardUserDefaults]
74 setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; 74 setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"];
75 } 75 }
76 76
77 void DidEndMainMessageLoop() { 77 void DidEndMainMessageLoop() {
78 AppController* appController = [NSApp delegate]; 78 AppController* appController = [NSApp delegate];
79 [appController didEndMainMessageLoop]; 79 [appController didEndMainMessageLoop];
80 NotificationService::current()->Notify(NotificationType::APP_TERMINATING,
81 NotificationService::AllSources(),
82 NotificationService::NoDetails());
83 } 80 }
84 81
85 void RecordBreakpadStatusUMA(MetricsService* metrics) { 82 void RecordBreakpadStatusUMA(MetricsService* metrics) {
86 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled()); 83 metrics->RecordBreakpadRegistration(IsCrashReporterEnabled());
87 metrics->RecordBreakpadHasDebugger(DebugUtil::BeingDebugged()); 84 metrics->RecordBreakpadHasDebugger(DebugUtil::BeingDebugged());
88 } 85 }
89 86
90 void WarnAboutMinimumSystemRequirements() { 87 void WarnAboutMinimumSystemRequirements() {
91 // Nothing to check for on Mac right now. 88 // Nothing to check for on Mac right now.
92 } 89 }
93 90
94 // From browser_main_win.h, stubs until we figure out the right thing... 91 // From browser_main_win.h, stubs until we figure out the right thing...
95 92
96 int DoUninstallTasks(bool chrome_still_running) { 93 int DoUninstallTasks(bool chrome_still_running) {
97 return ResultCodes::NORMAL_EXIT; 94 return ResultCodes::NORMAL_EXIT;
98 } 95 }
99 96
100 int HandleIconsCommands(const CommandLine& parsed_command_line) { 97 int HandleIconsCommands(const CommandLine& parsed_command_line) {
101 return 0; 98 return 0;
102 } 99 }
103 100
104 bool CheckMachineLevelInstall() { 101 bool CheckMachineLevelInstall() {
105 return false; 102 return false;
106 } 103 }
107 104
108 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line) { 105 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line) {
109 } 106 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_list_win.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698