Chromium Code Reviews| Index: chrome/browser/background_mode_manager.h |
| diff --git a/chrome/browser/background_mode_manager.h b/chrome/browser/background_mode_manager.h |
| index 6da40ece9317ce24b0482c82d0a2303bb2a95ad3..dd6baae69b0bda8673cbe641846d8e3e4b3f4441 100644 |
| --- a/chrome/browser/background_mode_manager.h |
| +++ b/chrome/browser/background_mode_manager.h |
| @@ -8,6 +8,7 @@ |
| #include "app/menus/simple_menu_model.h" |
| #include "base/gtest_prod_util.h" |
| +#include "base/task.h" |
|
Andrew T Wilson (Slow)
2010/12/04 18:49:48
Remove this #include.
The wrong rickcam account
2010/12/07 22:59:57
Done.
|
| #include "chrome/browser/background_application_list_model.h" |
| #include "chrome/browser/prefs/pref_change_registrar.h" |
| #include "chrome/browser/status_icons/status_icon.h" |
| @@ -44,8 +45,6 @@ class BackgroundModeManager |
| BackgroundModeManager(Profile* profile, CommandLine* command_line); |
| virtual ~BackgroundModeManager(); |
| - static void RegisterUserPrefs(PrefService* prefs); |
| - |
| static bool IsBackgroundModeEnabled(const CommandLine* command_line); |
| private: |
| @@ -95,12 +94,6 @@ class BackgroundModeManager |
| // launch-on-startup is disabled if appropriate. |
| void OnBackgroundAppUninstalled(); |
| - // Returns true if chrome has set "launch on startup" property for itself |
| - // earlier and is allowed to reset it later, reducing likelihood of |
| - // overriding user choices. |
| - bool IsLaunchOnStartupResetAllowed(); |
| - void SetLaunchOnStartupResetAllowed(bool allowed); |
| - |
| // Called to make sure that our launch-on-startup mode is properly set. |
| // (virtual so we can override for tests). |
| virtual void EnableLaunchOnStartup(bool should_launch); |
| @@ -119,6 +112,10 @@ class BackgroundModeManager |
| // manually, or all apps have been loaded). |
| void EndKeepAliveForStartup(); |
| + // Return an appropriate name for a Preferences menu entry. Preferences is |
| + // sometimes called Options or Settings. |
| + string16 GetPreferencesMenuLabel(); |
| + |
| // Create a status tray icon to allow the user to shutdown Chrome when running |
| // in background mode. Virtual to enable testing. |
| virtual void CreateStatusTrayIcon(); |