| 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 #include "chrome/common/pref_names.h" | 5 #include "chrome/common/pref_names.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 | 8 |
| 9 namespace prefs { | 9 namespace prefs { |
| 10 | 10 |
| 11 // *************** PROFILE PREFS *************** | 11 // *************** PROFILE PREFS *************** |
| 12 // These are attached to the user profile | 12 // These are attached to the user profile |
| 13 | 13 |
| 14 // A counter that controls whether the apps promo is shown in the app launcher | 14 // A counter that controls whether the apps promo is shown in the app launcher |
| 15 // or not. | 15 // or not. |
| 16 const char kAppsPromoCounter[] = "apps_promo_counter"; | 16 const char kAppsPromoCounter[] = "apps_promo_counter"; |
| 17 | 17 |
| 18 // Whether we have installed default apps yet in this profile. | 18 // Whether we have installed default apps yet in this profile. |
| 19 const char kDefaultAppsInstalled[] = "default_apps_installed"; | 19 const char kDefaultAppsInstalled[] = "default_apps_installed"; |
| 20 | 20 |
| 21 // A boolean specifying whether the New Tab page is the home page or not. | 21 // A boolean specifying whether the New Tab page is the home page or not. |
| 22 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; | 22 const char kHomePageIsNewTabPage[] = "homepage_is_newtabpage"; |
| 23 | 23 |
| 24 // This is the URL of the page to load when opening new tabs. | 24 // This is the URL of the page to load when opening new tabs. |
| 25 const char kHomePage[] = "homepage"; | 25 const char kHomePage[] = "homepage"; |
| 26 | 26 |
| 27 // Did the user change the home page after install? |
| 28 const char kHomePageChanged[] = "homepage_changed"; |
| 29 |
| 27 // Used to determine if the last session exited cleanly. Set to false when | 30 // Used to determine if the last session exited cleanly. Set to false when |
| 28 // first opened, and to true when closing. On startup if the value is false, | 31 // first opened, and to true when closing. On startup if the value is false, |
| 29 // it means the profile didn't exit cleanly. | 32 // it means the profile didn't exit cleanly. |
| 30 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; | 33 const char kSessionExitedCleanly[] = "profile.exited_cleanly"; |
| 31 | 34 |
| 32 // An integer pref. Holds one of several values: | 35 // An integer pref. Holds one of several values: |
| 33 // 0: (or empty) don't do anything special on startup. | 36 // 0: (or empty) don't do anything special on startup. |
| 34 // 1: restore the last session. | 37 // 1: restore the last session. |
| 35 // 2: this was used to indicate a specific session should be restored. It is | 38 // 2: this was used to indicate a specific session should be restored. It is |
| 36 // no longer used, but saved to avoid conflict with old preferences. | 39 // no longer used, but saved to avoid conflict with old preferences. |
| (...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 // specified. | 1577 // specified. |
| 1575 const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; | 1578 const char kCustomHandlersEnabled[] = "custom_handlers.enabled"; |
| 1576 | 1579 |
| 1577 // Integers that specify the policy refresh rate for device- and user-policy in | 1580 // Integers that specify the policy refresh rate for device- and user-policy in |
| 1578 // milliseconds. Not all values are meaningful, so it is clamped to a sane range | 1581 // milliseconds. Not all values are meaningful, so it is clamped to a sane range |
| 1579 // by the cloud policy subsystem. | 1582 // by the cloud policy subsystem. |
| 1580 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; | 1583 const char kDevicePolicyRefreshRate[] = "policy.device_refresh_rate"; |
| 1581 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; | 1584 const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate"; |
| 1582 | 1585 |
| 1583 } // namespace prefs | 1586 } // namespace prefs |
| OLD | NEW |