Commit 47cf87ac authored by thestig@chromium.org's avatar thestig@chromium.org

Prefs: Only use IDR_PREF_HASH_SEED_BIN in Chrome builds.

BUG=333201

Review URL: https://codereview.chromium.org/444253002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288154 0039d316-1c4b-4281-b951-d872f2087c98
parent 6d6797eb
......@@ -352,14 +352,17 @@ scoped_ptr<ProfilePrefStoreManager> CreateProfilePrefStoreManager(
// As part of improving pref metrics on other platforms we may want to find
// ways to defer preference loading until the device ID can be used.
rlz_lib::GetMachineId(&device_id);
#endif
std::string seed;
#if defined(GOOGLE_CHROME_BUILD)
seed = ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_PREF_HASH_SEED_BIN).as_string(),
#endif
return make_scoped_ptr(new ProfilePrefStoreManager(
profile_path,
GetTrackingConfiguration(),
kTrackedPrefsReportingIDsCount,
ResourceBundle::GetSharedInstance()
.GetRawDataResource(IDR_PREF_HASH_SEED_BIN)
.as_string(),
seed,
device_id,
g_browser_process->local_state()));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment