summaryrefslogtreecommitdiffstats
path: root/chrome/installer/util/master_preferences.cc
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 23:50:37 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 23:50:37 +0000
commitb1390d09433a31fc794dee4b20a37c999476ddcf (patch)
tree6e2577b48c70f5dbe4505dd31d06f97acf658e55 /chrome/installer/util/master_preferences.cc
parent06416f79b380fe5378bc3fd305e89c762c8408ea (diff)
downloadchromium_src-b1390d09433a31fc794dee4b20a37c999476ddcf.zip
chromium_src-b1390d09433a31fc794dee4b20a37c999476ddcf.tar.gz
chromium_src-b1390d09433a31fc794dee4b20a37c999476ddcf.tar.bz2
Commit for Miranda.
http://codereview.chromium.org/115265 Original text: """ This addresses 3 of the 4 issues described in Issue 9223: 1) Creates a new streamlined bubble with less text. 2) Incorporates a close [x]. 3) Driven by configuration option in master_preferences file; this alternate bubble will be used only if "oem_bubble": true is set. Requested longer linger time feature will involve mucking with the focus manager; this change will be uploaded separately. BUG=9223 TEST=Add "oem_bubble": true to master_preferences file. Run chrome with --first-run option. Alternate, smaller OEM bubble should appear over the Chrome browser in the place of the standard first-run bubble. """ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/util/master_preferences.cc')
-rw-r--r--chrome/installer/util/master_preferences.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/installer/util/master_preferences.cc b/chrome/installer/util/master_preferences.cc
index d376456..9e440af 100644
--- a/chrome/installer/util/master_preferences.cc
+++ b/chrome/installer/util/master_preferences.cc
@@ -69,6 +69,8 @@ const wchar_t kVerboseLogging[] = L"verbose_logging";
const wchar_t kRequireEula[] = L"require_eula";
// Use alternate shortcut text for the main shortcut.
const wchar_t kAltShortcutText[] = L"alternate_shortcut_text";
+// Use alternate smaller first run info bubble.
+const wchar_t kAltFirstRunBubble[] = L"oem_bubble";
int ParseDistributionPreferences(const std::wstring& master_prefs_path) {
@@ -109,6 +111,8 @@ int ParseDistributionPreferences(const std::wstring& master_prefs_path) {
parse_result |= MASTER_PROFILE_REQUIRE_EULA;
if (GetBooleanPref(distro, kAltShortcutText))
parse_result |= MASTER_PROFILE_ALT_SHORTCUT_TXT;
+ if (GetBooleanPref(distro, kAltFirstRunBubble))
+ parse_result |= MASTER_PROFILE_OEM_FIRST_RUN_BUBBLE;
}
return parse_result;
}