| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "base/command_line.h" | 5 #include "base/command_line.h" |
| 6 #include "base/prefs/pref_service.h" | |
| 7 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" | 7 #include "chrome/browser/chromeos/first_run/goodies_displayer.h" |
| 9 #include "chrome/browser/profiles/profile_manager.h" | 8 #include "chrome/browser/profiles/profile_manager.h" |
| 10 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
| 11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 10 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 12 #include "chrome/common/chrome_switches.h" | 11 #include "chrome/common/chrome_switches.h" |
| 13 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 14 #include "chrome/test/base/in_process_browser_test.h" | 13 #include "chrome/test/base/in_process_browser_test.h" |
| 15 #include "chrome/test/base/ui_test_utils.h" | 14 #include "chrome/test/base/ui_test_utils.h" |
| 15 #include "components/prefs/pref_service.h" |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 | 18 |
| 19 class GoodiesDisplayerBrowserTest : public InProcessBrowserTest { | 19 class GoodiesDisplayerBrowserTest : public InProcessBrowserTest { |
| 20 public: | 20 public: |
| 21 GoodiesDisplayerBrowserTest() {} | 21 GoodiesDisplayerBrowserTest() {} |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 ~GoodiesDisplayerBrowserTest() override { | 24 ~GoodiesDisplayerBrowserTest() override { |
| 25 first_run::GoodiesDisplayer::Delete(); | 25 first_run::GoodiesDisplayer::Delete(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 prefs::kCanShowOobeGoodiesPage)); | 126 prefs::kCanShowOobeGoodiesPage)); |
| 127 | 127 |
| 128 // Next time a browser is opened, no Goodies. | 128 // Next time a browser is opened, no Goodies. |
| 129 Browser* browser2 = CreateBrowser(browser->profile()); | 129 Browser* browser2 = CreateBrowser(browser->profile()); |
| 130 ASSERT_EQ(2u, chrome::GetTotalBrowserCount()); | 130 ASSERT_EQ(2u, chrome::GetTotalBrowserCount()); |
| 131 ExpectTabCounts(browser2, 1, 0); | 131 ExpectTabCounts(browser2, 1, 0); |
| 132 } | 132 } |
| 133 | 133 |
| 134 } // namespace chromeos | 134 } // namespace chromeos |
| 135 | 135 |
| OLD | NEW |