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

Unified Diff: chrome/test/base/chrome_render_view_host_test_harness.cc

Issue 15024007: Eliminate BrowserProcess dependency from sign-in production code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR Created 7 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
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/chrome_render_view_host_test_harness.cc
diff --git a/chrome/test/base/chrome_render_view_host_test_harness.cc b/chrome/test/base/chrome_render_view_host_test_harness.cc
index d37d9c0232401fd6ae7a728ee6542dec391c6215..e595ebd1bd54fd1b1dfed73a260111efd5c9ec8d 100644
--- a/chrome/test/base/chrome_render_view_host_test_harness.cc
+++ b/chrome/test/base/chrome_render_view_host_test_harness.cc
@@ -4,6 +4,7 @@
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/signin/fake_signin_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/test/base/testing_profile.h"
@@ -40,11 +41,11 @@ static ProfileKeyedService* BuildSigninManagerFake(
Profile* profile = static_cast<Profile*>(context);
#if defined (OS_CHROMEOS)
SigninManagerBase* signin = new SigninManagerBase();
- signin->Initialize(profile);
+ signin->Initialize(profile, NULL);
return signin;
#else
FakeSigninManager* manager = new FakeSigninManager(profile);
- manager->Initialize(profile);
+ manager->Initialize(profile, g_browser_process->local_state());
return manager;
#endif
}
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698