Index: chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
diff --git a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
index 50b7d2743e454db4dcc7dd1ae55076d6e9403527..9e4f878e1950f09d34fd00dbda1eab6a8563af11 100644 |
--- a/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
+++ b/chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc |
@@ -23,26 +23,13 @@ |
#include "chrome/common/chrome_switches.h" |
#endif |
-#if defined(OS_CHROMEOS) |
-// TODO(nkostylev): Cleanup this code once multi-profiles are enabled by |
-// default on CrOS. http://crbug.com/351655 |
-class SessionCrashedInfoBarDelegateUnitTest : |
- public BrowserWithTestWindowTest, |
- public testing::WithParamInterface<bool> { |
-#else |
class SessionCrashedInfoBarDelegateUnitTest : public BrowserWithTestWindowTest { |
-#endif |
public: |
virtual void SetUp() OVERRIDE { |
static_cast<TestingBrowserProcess*>(g_browser_process) |
->SetLocalState(&pref_service); |
chrome::RegisterLocalState(pref_service.registry()); |
-#if defined(OS_CHROMEOS) |
- if (GetParam()) |
- CommandLine::ForCurrentProcess()->AppendSwitch(switches::kMultiProfiles); |
-#endif |
- |
// This needs to be called after the local state is set, because it will |
// create a browser which will try to read from the local state. |
BrowserWithTestWindowTest::SetUp(); |
@@ -57,11 +44,7 @@ class SessionCrashedInfoBarDelegateUnitTest : public BrowserWithTestWindowTest { |
TestingPrefServiceSimple pref_service; |
}; |
-#if defined(OS_CHROMEOS) |
-TEST_P(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) { |
-#else |
TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) { |
-#endif |
SessionServiceFactory::SetForTestProfile( |
browser()->profile(), |
static_cast<SessionService*>( |
@@ -112,9 +95,3 @@ TEST_F(SessionCrashedInfoBarDelegateUnitTest, DetachingTabWithCrashedInfoBar) { |
// Ramp down the test. |
tab_strip->CloseWebContentsAt(0, TabStripModel::CLOSE_NONE); |
} |
- |
-#if defined(OS_CHROMEOS) |
-INSTANTIATE_TEST_CASE_P(SessionCrashedInfoBarDelegateUnitTestInstantiation, |
- SessionCrashedInfoBarDelegateUnitTest, |
- testing::Bool()); |
-#endif |