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

Unified Diff: chrome/browser/managed_mode_unittest.cc

Issue 10006037: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile Created 8 years, 8 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/intents/web_intents_registry_unittest.cc ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/managed_mode_unittest.cc
diff --git a/chrome/browser/managed_mode_unittest.cc b/chrome/browser/managed_mode_unittest.cc
index 712dcc7f8b063d05e9737abb3dfc2a946fdd4b93..6778b603c4982bb70ccb4093f9b45d352b571f43 100644
--- a/chrome/browser/managed_mode_unittest.cc
+++ b/chrome/browser/managed_mode_unittest.cc
@@ -12,6 +12,7 @@
#include "base/message_loop.h"
#include "chrome/browser/managed_mode.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/webdata/web_data_service_factory.h"
#include "chrome/test/base/test_browser_window.h"
#include "chrome/test/base/testing_profile.h"
#include "content/test/test_browser_thread.h"
@@ -114,6 +115,11 @@ class MockCallback : public base::RefCountedThreadSafe<MockCallback> {
class ManagedModeTest : public ::testing::Test {
public:
ManagedModeTest() : ui_thread_(content::BrowserThread::UI, &message_loop_) {
+ // WebDataService is not used in this test and should be NULL.
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(
+ &managed_mode_profile_, NULL);
+ WebDataServiceFactory::GetInstance()->SetTestingFactory(
+ &other_profile_, NULL);
}
scoped_refptr<MockCallback> CreateCallback() {
« no previous file with comments | « chrome/browser/intents/web_intents_registry_unittest.cc ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698