Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2770)

Unified Diff: chrome/browser/first_run/first_run_browsertest.cc

Issue 9016036: Implement the new first run bubble, clean up old bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/first_run_browsertest.cc
diff --git a/chrome/browser/first_run/first_run_browsertest.cc b/chrome/browser/first_run/first_run_browsertest.cc
index 0d6249faae4ebe69c6d5169f9d9aa8e546e63539..40383b2eeca09d20f909c16be0bac8807e7c6bc9 100644
--- a/chrome/browser/first_run/first_run_browsertest.cc
+++ b/chrome/browser/first_run/first_run_browsertest.cc
@@ -19,6 +19,13 @@ IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetShowFirstRunBubblePref) {
prefs::kShouldShowFirstRunBubble));
EXPECT_TRUE(g_browser_process->local_state()->GetBoolean(
prefs::kShouldShowFirstRunBubble));
+ // Test that toggling the value works in either direction after it's been set.
+ EXPECT_TRUE(first_run::SetShowFirstRunBubblePref(false));
+ EXPECT_FALSE(g_browser_process->local_state()->GetBoolean(
+ prefs::kShouldShowFirstRunBubble));
+ EXPECT_TRUE(first_run::SetShowFirstRunBubblePref(true));
+ EXPECT_TRUE(g_browser_process->local_state()->GetBoolean(
+ prefs::kShouldShowFirstRunBubble));
}
IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetShowWelcomePagePref) {
@@ -30,23 +37,3 @@ IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetShowWelcomePagePref) {
EXPECT_TRUE(g_browser_process->local_state()->GetBoolean(
prefs::kShouldShowWelcomePage));
}
-
-IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetOEMFirstRunBubblePref) {
- EXPECT_FALSE(g_browser_process->local_state()->FindPreference(
- prefs::kShouldUseOEMFirstRunBubble));
- EXPECT_TRUE(first_run::SetOEMFirstRunBubblePref());
- ASSERT_TRUE(g_browser_process->local_state()->FindPreference(
- prefs::kShouldUseOEMFirstRunBubble));
- EXPECT_TRUE(g_browser_process->local_state()->GetBoolean(
- prefs::kShouldUseOEMFirstRunBubble));
-}
-
-IN_PROC_BROWSER_TEST_F(FirstRunBrowserTest, SetMinimalFirstRunBubblePref) {
- EXPECT_FALSE(g_browser_process->local_state()->FindPreference(
- prefs::kShouldUseMinimalFirstRunBubble));
- EXPECT_TRUE(first_run::SetMinimalFirstRunBubblePref());
- ASSERT_TRUE(g_browser_process->local_state()->FindPreference(
- prefs::kShouldUseMinimalFirstRunBubble));
- EXPECT_TRUE(g_browser_process->local_state()->GetBoolean(
- prefs::kShouldUseMinimalFirstRunBubble));
-}
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698