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

Unified Diff: chrome/browser/translate/translate_manager_browsertest.cc

Issue 9583036: Revert 124817 - Take extensions out of Profile into a profile-keyed service, ExtensionSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
Index: chrome/browser/translate/translate_manager_browsertest.cc
===================================================================
--- chrome/browser/translate/translate_manager_browsertest.cc (revision 124830)
+++ chrome/browser/translate/translate_manager_browsertest.cc (working copy)
@@ -13,8 +13,6 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/app/chrome_command_ids.h"
-#include "chrome/browser/extensions/extension_system_factory.h"
-#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/browser/infobars/infobar.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
@@ -1307,7 +1305,7 @@
// translate" infobar when the translation is accepted/declined 3 times,
// only when not in incognito mode.
TEST_F(TranslateManagerTest, BeforeTranslateExtraButtons) {
- Profile* profile =
+ Profile* profile =
Profile::FromBrowserContext(contents()->GetBrowserContext());
TranslatePrefs translate_prefs(profile->GetPrefs());
translate_prefs.ResetTranslationAcceptedCount("fr");
@@ -1320,9 +1318,7 @@
TranslateInfoBarDelegate* infobar;
TestingProfile* test_profile =
static_cast<TestingProfile*>(contents()->GetBrowserContext());
- static_cast<TestExtensionSystem*>(
- ExtensionSystemFactory::GetForProfile(test_profile))->
- CreateExtensionProcessManager();
+ test_profile->CreateExtensionProcessManager();
test_profile->set_incognito(true);
for (int i = 0; i < 8; ++i) {
SCOPED_TRACE(::testing::Message() << "Iteration " << i <<

Powered by Google App Engine
This is Rietveld 408576698