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

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

Issue 8302016: Make GTK and Aura parts orthogonal to OS parts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chrome_browser_main_mac.h" 5 #include "chrome/browser/chrome_browser_main_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/debugger.h" 10 #include "base/debug/debugger.h"
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 void RecordBrowserStartupTime() { 32 void RecordBrowserStartupTime() {
33 // Not implemented on Mac for now. 33 // Not implemented on Mac for now.
34 } 34 }
35 35
36 void WarnAboutMinimumSystemRequirements() { 36 void WarnAboutMinimumSystemRequirements() {
37 // Nothing to check for on Mac right now. 37 // Nothing to check for on Mac right now.
38 } 38 }
39 39
40 void ShowMissingLocaleMessageBox() {
41 // Not called on Mac because we load the locale files differently.
42 }
43
44 // From browser_main_win.h, stubs until we figure out the right thing... 40 // From browser_main_win.h, stubs until we figure out the right thing...
45 41
46 int DoUninstallTasks(bool chrome_still_running) { 42 int DoUninstallTasks(bool chrome_still_running) {
47 return content::RESULT_CODE_NORMAL_EXIT; 43 return content::RESULT_CODE_NORMAL_EXIT;
48 } 44 }
49 45
50 int HandleIconsCommands(const CommandLine& parsed_command_line) {
51 return 0;
52 }
53
54 bool CheckMachineLevelInstall() {
55 return false;
56 }
57
58 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line) {
59 }
60
61 // ChromeBrowserMainPartsMac --------------------------------------------------- 46 // ChromeBrowserMainPartsMac ---------------------------------------------------
62 47
63 ChromeBrowserMainPartsMac::ChromeBrowserMainPartsMac( 48 ChromeBrowserMainPartsMac::ChromeBrowserMainPartsMac(
64 const MainFunctionParams& parameters) 49 const MainFunctionParams& parameters)
65 : ChromeBrowserMainPartsPosix(parameters) { 50 : ChromeBrowserMainPartsPosix(parameters) {
66 } 51 }
67 52
68 void ChromeBrowserMainPartsMac::PreEarlyInitialization() { 53 void ChromeBrowserMainPartsMac::PreEarlyInitialization() {
69 ChromeBrowserMainPartsPosix::PreEarlyInitialization(); 54 ChromeBrowserMainPartsPosix::PreEarlyInitialization();
70 55
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // This is a no-op if the KeystoneRegistration framework is not present. 106 // This is a no-op if the KeystoneRegistration framework is not present.
122 // The framework is only distributed with branded Google Chrome builds. 107 // The framework is only distributed with branded Google Chrome builds.
123 [[KeystoneGlue defaultKeystoneGlue] registerWithKeystone]; 108 [[KeystoneGlue defaultKeystoneGlue] registerWithKeystone];
124 109
125 // Prevent Cocoa from turning command-line arguments into 110 // Prevent Cocoa from turning command-line arguments into
126 // |-application:openFiles:|, since we already handle them directly. 111 // |-application:openFiles:|, since we already handle them directly.
127 [[NSUserDefaults standardUserDefaults] 112 [[NSUserDefaults standardUserDefaults]
128 setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"]; 113 setObject:@"NO" forKey:@"NSTreatUnknownArgumentsAsOpen"];
129 } 114 }
130 115
116 void ChromeBrowserMainPartsMac::ShowMissingLocaleMessageBox() {
117 // Not called on Mac because we load the locale files differently.
118 NOTREACHED();
119 }
120
131 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { 121 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() {
132 AppController* appController = [NSApp delegate]; 122 AppController* appController = [NSApp delegate];
133 [appController didEndMainMessageLoop]; 123 [appController didEndMainMessageLoop];
134 } 124 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main_mac.h ('k') | chrome/browser/chrome_browser_main_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698