diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 00:10:48 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-06 00:10:48 +0000 |
commit | df6725ea98d03df12c59cfcaadaf921ff47180c7 (patch) | |
tree | eba747b1415aa994400263a85b2daa113f0b03a1 /chrome/installer/util/master_preferences.h | |
parent | a5b9781b827724254c9440920db40248a50d6dad (diff) | |
download | chromium_src-df6725ea98d03df12c59cfcaadaf921ff47180c7.zip chromium_src-df6725ea98d03df12c59cfcaadaf921ff47180c7.tar.gz chromium_src-df6725ea98d03df12c59cfcaadaf921ff47180c7.tar.bz2 |
Add first_run_tabs to the master prefs file
- Updated unit test
BUG=http://code.google.com/p/chromium/issues/detail?id=9706
TEST=none. Unit test included.
Review URL: http://codereview.chromium.org/100364
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/master_preferences.h')
-rw-r--r-- | chrome/installer/util/master_preferences.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/installer/util/master_preferences.h b/chrome/installer/util/master_preferences.h index 13bee22..14426f1 100644 --- a/chrome/installer/util/master_preferences.h +++ b/chrome/installer/util/master_preferences.h @@ -9,6 +9,7 @@ #define CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__ #include <string> +#include <vector> namespace installer_util { @@ -83,6 +84,10 @@ enum MasterPrefResult { // "bookmark_bar": { // "show_on_all_tabs": true // }, +// "first_run_tabs": [ +// "http://gmail.com", +// "https://igoogle.com" +// ], // "homepage": "http://example.org", // "homepage_is_newtabpage": false // } @@ -93,6 +98,23 @@ enum MasterPrefResult { // of MasterPrefResult. int ParseDistributionPreferences(const std::wstring& master_prefs_path); +// As part of the master preferences an optional section indicates the tabs +// to open during first run. An example is the following: +// +// { +// "first_run_tabs": [ +// "http://google.com/f1", +// "https://google.com/f2" +// ] +// } +// +// Note that the entries are usually urls but they don't have to. +// +// This function retuns the list as a vector of strings. If the master +// preferences file does not contain such list the vector is empty. +std::vector<std::wstring> ParseFirstRunTabs( + const std::wstring& master_prefs_path); + } #endif // CHROME_INSTALLER_UTIL_MASTER_PREFERENCES_H__ |