| OLD | NEW |
| 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 #ifndef CHROME_APP_CHROME_MAIN_H_ | 5 #ifndef CHROME_APP_CHROME_MAIN_MAC_H_ |
| 6 #define CHROME_APP_CHROME_MAIN_H_ | 6 #define CHROME_APP_CHROME_MAIN_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | |
| 10 | |
| 11 // See | |
| 12 // http://dev.chromium.org/developers/design-documents/startup | |
| 13 // for a discussion of the various pieces involved in startup. | |
| 14 // This header is for pulling some platform-specific initialization | |
| 15 // parts out of chrome_main.cc and into chrome_main_*.cc. | |
| 16 | |
| 17 class FilePath; | 9 class FilePath; |
| 18 | 10 |
| 19 namespace chrome_main { | |
| 20 | |
| 21 // Checks if the UserDataDir policy has been set and returns its value in the | 11 // Checks if the UserDataDir policy has been set and returns its value in the |
| 22 // |user_data_dir| parameter. If no policy is set the parameter is not changed. | 12 // |user_data_dir| parameter. If no policy is set the parameter is not changed. |
| 23 void CheckUserDataDirPolicy(FilePath* user_data_dir); | 13 void CheckUserDataDirPolicy(FilePath* user_data_dir); |
| 24 | 14 |
| 25 #if defined(OS_MACOSX) | |
| 26 // Sets the app bundle (base::mac::MainAppBundle()) to the framework's bundle, | 15 // Sets the app bundle (base::mac::MainAppBundle()) to the framework's bundle, |
| 27 // and sets the base bundle ID (base::mac::BaseBundleID()) to the proper value | 16 // and sets the base bundle ID (base::mac::BaseBundleID()) to the proper value |
| 28 // based on the running application. The base bundle ID is the outer browser | 17 // based on the running application. The base bundle ID is the outer browser |
| 29 // application's bundle ID even when running in a non-browser (helper) | 18 // application's bundle ID even when running in a non-browser (helper) |
| 30 // process. | 19 // process. |
| 31 void SetUpBundleOverrides(); | 20 void SetUpBundleOverrides(); |
| 32 #endif | |
| 33 | 21 |
| 34 } // namespace chrome_main | 22 #endif // CHROME_APP_CHROME_MAIN_MAC_H_ |
| 35 | |
| 36 #endif // CHROME_APP_CHROME_MAIN_H_ | |
| OLD | NEW |