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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper_unittest.cc

Issue 10693022: Add support for loading user cloud policy on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed redundant #ifdef OS_CHROMEOS guard Created 8 years, 4 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/sync/one_click_signin_helper_unittest.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
index 826f18882da6fa368aabedfe3549eb71af11db1d..1330c8c8f56ae1b7a393ea575eda38d06ea3530c 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper_unittest.cc
@@ -35,7 +35,8 @@ namespace {
class SigninManagerMock : public FakeSigninManager {
public:
- SigninManagerMock() {}
+ explicit SigninManagerMock(Profile* profile)
+ : FakeSigninManager(profile) {}
MOCK_CONST_METHOD1(IsAllowedUsername, bool(const std::string& username));
};
@@ -78,7 +79,7 @@ void OneClickSigninHelperTest::SetUp() {
}
static ProfileKeyedService* BuildSigninManagerMock(Profile* profile) {
- return new SigninManagerMock();
+ return new SigninManagerMock(profile);
}
content::WebContents* OneClickSigninHelperTest::CreateMockWebContents(

Powered by Google App Engine
This is Rietveld 408576698