| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_APP_CHROME_MAIN_H_ | |
| 6 #define CHROME_APP_CHROME_MAIN_H_ | |
| 7 #pragma once | |
| 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; | |
| 18 | |
| 19 namespace chrome_main { | |
| 20 | |
| 21 // 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. | |
| 23 void CheckUserDataDirPolicy(FilePath* user_data_dir); | |
| 24 | |
| 25 #if defined(OS_MACOSX) | |
| 26 // 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 | |
| 28 // 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) | |
| 30 // process. | |
| 31 void SetUpBundleOverrides(); | |
| 32 #endif | |
| 33 | |
| 34 } // namespace chrome_main | |
| 35 | |
| 36 #endif // CHROME_APP_CHROME_MAIN_H_ | |
| OLD | NEW |