Commit 572fc4d8 authored by n.bansal@samsung.com's avatar n.bansal@samsung.com

PasswordManager - SetUpOnMainThread clean up

Clean up patch to move kEnableAutomaticPasswordSaving check
to SetUpMainThread().

BUG=393567

Review URL: https://codereview.chromium.org/404983002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284472 0039d316-1c4b-4281-b951-d872f2087c98
parent 04937a92
...@@ -259,6 +259,8 @@ class PasswordManagerBrowserTest : public InProcessBrowserTest { ...@@ -259,6 +259,8 @@ class PasswordManagerBrowserTest : public InProcessBrowserTest {
PasswordStoreFactory::GetInstance()->SetTestingFactory( PasswordStoreFactory::GetInstance()->SetTestingFactory(
browser()->profile(), TestPasswordStoreService::Build); browser()->profile(), TestPasswordStoreService::Build);
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady()); ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
ASSERT_FALSE(CommandLine::ForCurrentProcess()->HasSwitch(
password_manager::switches::kEnableAutomaticPasswordSaving));
} }
virtual void CleanUpOnMainThread() OVERRIDE { virtual void CleanUpOnMainThread() OVERRIDE {
...@@ -281,11 +283,6 @@ class PasswordManagerBrowserTest : public InProcessBrowserTest { ...@@ -281,11 +283,6 @@ class PasswordManagerBrowserTest : public InProcessBrowserTest {
// would sometimes see the DidFinishLoad event from a previous navigation and // would sometimes see the DidFinishLoad event from a previous navigation and
// return immediately. // return immediately.
void NavigateToFile(const std::string& path) { void NavigateToFile(const std::string& path) {
if (!embedded_test_server()->Started())
ASSERT_TRUE(embedded_test_server()->InitializeAndWaitUntilReady());
ASSERT_FALSE(CommandLine::ForCurrentProcess()->HasSwitch(
password_manager::switches::kEnableAutomaticPasswordSaving));
NavigationObserver observer(WebContents()); NavigationObserver observer(WebContents());
GURL url = embedded_test_server()->GetURL(path); GURL url = embedded_test_server()->GetURL(path);
ui_test_utils::NavigateToURL(browser(), url); ui_test_utils::NavigateToURL(browser(), url);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment