1 // Copyright 2011 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_APP_CHROME_MAIN_MAC_H_
6 #define CHROME_APP_CHROME_MAIN_MAC_H_
12 // Checks if the UserDataDir policy has been set and returns its value in the
13 // |user_data_dir| parameter. If no policy is set the parameter is not changed.
14 void CheckUserDataDirPolicy(base::FilePath* user_data_dir);
16 // Sets the app bundle (base::apple::FrameworkBundle()) to the framework's
17 // bundle, and sets the base bundle ID (base::apple::BaseBundleID()) to the
18 // proper value based on the running application. The base bundle ID is the
19 // outer browser application's bundle ID even when running in a non-browser
21 void SetUpBundleOverrides();
23 // Checks if the system launched the alerts helper app via a notification
24 // action. If that's the case we want to gracefully exit the process as we can't
25 // handle the click this way. Instead we rely on the browser process to re-spawn
26 // the helper if it got killed unexpectedly.
27 bool IsAlertsHelperLaunchedViaNotificationAction();
29 #endif // CHROME_APP_CHROME_MAIN_MAC_H_