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

Unified Diff: chrome/browser/ui/startup/session_crashed_infobar_delegate_unittest.cc

Issue 287083003: Multi-profile flag cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Created 6 years, 7 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
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

Powered by Google App Engine
This is Rietveld 408576698