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

Unified Diff: chrome/browser/profiles/off_the_record_profile_impl_unittest.cc

Issue 9369013: Take extensions out of Profile into a profile-keyed service, ExtensionSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rerebase Created 8 years, 10 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/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/off_the_record_profile_impl_unittest.cc
diff --git a/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc b/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc
index ebc63cb72c21e6ef0a82753626a5a6a6d24aceb7..4d0f2c0ae1df5498e518a9a62cfd31f7aa6cfe1a 100644
--- a/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc
+++ b/chrome/browser/profiles/off_the_record_profile_impl_unittest.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/net/ssl_config_service_manager.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/prefs/scoped_user_pref_update.h"
+#include "chrome/browser/profiles/profile_dependency_manager.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/base/browser_with_test_window_test.h"
#include "chrome/test/base/testing_browser_process.h"
@@ -142,6 +143,9 @@ TEST_F(OffTheRecordProfileImplTest, GetHostZoomMap) {
new OffTheRecordProfileImpl(parent_profile.get()));
child_profile->InitHostZoomMap();
+ ProfileDependencyManager::GetInstance()->CreateProfileServices(
+ child_profile.get(), false);
+
// Prepare child host zoom map.
HostZoomMap* child_zoom_map =
HostZoomMap::GetForBrowserContext(child_profile.get());
@@ -159,12 +163,12 @@ TEST_F(OffTheRecordProfileImplTest, GetHostZoomMap) {
EXPECT_NE(parent_zoom_map->GetZoomLevel(host),
child_zoom_map->GetZoomLevel(host)) <<
- "Child change must not propaget to parent.";
+ "Child change must not propagate to parent.";
parent_zoom_map->SetZoomLevel(host, zoom_level_40);
ASSERT_EQ(parent_zoom_map->GetZoomLevel(host), zoom_level_40);
EXPECT_EQ(parent_zoom_map->GetZoomLevel(host),
child_zoom_map->GetZoomLevel(host)) <<
- "Parent change should propaget to child.";
+ "Parent change should propagate to child.";
}
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698