| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 namespace prefs { | 7 namespace prefs { |
| 8 | 8 |
| 9 // *************** PROFILE PREFS *************** | 9 // *************** PROFILE PREFS *************** |
| 10 // These are attached to the user profile | 10 // These are attached to the user profile |
| 11 | 11 |
| 12 // A boolean specifying whether the New Tab page is the home page or not. | 12 // A boolean specifying whether the New Tab page is the home page or not. |
| 13 const wchar_t kHomePageIsNewTabPage[] = L"homepage_is_newtabpage"; | 13 const wchar_t kHomePageIsNewTabPage[] = L"homepage_is_newtabpage"; |
| 14 | 14 |
| 15 // This is the URL of the page to load when opening new tabs. | 15 // This is the URL of the page to load when opening new tabs. |
| 16 const wchar_t kHomePage[] = L"homepage"; | 16 const wchar_t kHomePage[] = L"homepage"; |
| 17 | 17 |
| 18 // Used to determine if the last session exited cleanly. Set to false when | 18 // Used to determine if the last session exited cleanly. Set to false when |
| 19 // first opened, and to true when closing. On startup if the value is false, | 19 // first opened, and to true when closing. On startup if the value is false, |
| 20 // it means the profile didn't exit cleanly. | 20 // it means the profile didn't exit cleanly. |
| 21 const wchar_t kSessionExitedCleanly[] = L"profile.exited_cleanly"; | 21 const wchar_t kSessionExitedCleanly[] = L"profile.exited_cleanly"; |
| 22 | 22 |
| 23 // This is one of three integer values: | 23 // An integer pref. Holds one of several values: |
| 24 // 0: (or empty) don't do anything special on startup. | 24 // 0: (or empty) don't do anything special on startup. |
| 25 // 1: restore the last session. | 25 // 1: restore the last session. |
| 26 // 2: this was used to indicate a specific session should be restored. It is | 26 // 2: this was used to indicate a specific session should be restored. It is |
| 27 // no longer used, but saved to avoid conflict with old preferences. | 27 // no longer used, but saved to avoid conflict with old preferences. |
| 28 // 3: unused, previously indicated the user wants to restore a saved session. | 28 // 3: unused, previously indicated the user wants to restore a saved session. |
| 29 // 4: restore the URLs defined in kURLsToRestoreOnStartup. | 29 // 4: restore the URLs defined in kURLsToRestoreOnStartup. |
| 30 const wchar_t kRestoreOnStartup[] = L"session.restore_on_startup"; | 30 const wchar_t kRestoreOnStartup[] = L"session.restore_on_startup"; |
| 31 | 31 |
| 32 // The URLs to restore on startup or when the home button is pressed. The URLs | 32 // The URLs to restore on startup or when the home button is pressed. The URLs |
| 33 // are only restored on startup if kRestoreOnStartup is 4. | 33 // are only restored on startup if kRestoreOnStartup is 4. |
| (...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 // Boolean specifying whether the user finished setting up sync. | 657 // Boolean specifying whether the user finished setting up sync. |
| 658 const wchar_t kSyncHasSetupCompleted[] = L"sync.has_setup_completed"; | 658 const wchar_t kSyncHasSetupCompleted[] = L"sync.has_setup_completed"; |
| 659 | 659 |
| 660 // Create web application shortcut dialog preferences. | 660 // Create web application shortcut dialog preferences. |
| 661 const wchar_t kWebAppCreateOnDesktop[] = L"browser.web_app.create_on_desktop"; | 661 const wchar_t kWebAppCreateOnDesktop[] = L"browser.web_app.create_on_desktop"; |
| 662 const wchar_t kWebAppCreateInAppsMenu[] = | 662 const wchar_t kWebAppCreateInAppsMenu[] = |
| 663 L"browser.web_app.create_in_apps_menu"; | 663 L"browser.web_app.create_in_apps_menu"; |
| 664 const wchar_t kWebAppCreateInQuickLaunchBar[] = | 664 const wchar_t kWebAppCreateInQuickLaunchBar[] = |
| 665 L"browser.web_app.create_in_quick_launch_bar"; | 665 L"browser.web_app.create_in_quick_launch_bar"; |
| 666 | 666 |
| 667 // Dictionary that maps Geolocation network provider server URLs to |
| 668 // corresponding access token. |
| 669 const wchar_t kGeolocationAccessToken[] = L"geolocation.access_token"; |
| 670 |
| 667 } // namespace prefs | 671 } // namespace prefs |
| OLD | NEW |