Index: chrome/browser/spellchecker/spellcheck_service.cc |
diff --git a/chrome/browser/spellchecker/spellcheck_service.cc b/chrome/browser/spellchecker/spellcheck_service.cc |
index 180823d8d90bd25f7740319e659be315ef5c8c19..dfc4898bf0f392e060ef8cf83840562013fdd328 100644 |
--- a/chrome/browser/spellchecker/spellcheck_service.cc |
+++ b/chrome/browser/spellchecker/spellcheck_service.cc |
@@ -29,7 +29,6 @@ |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/notification_types.h" |
#include "content/public/browser/render_process_host.h" |
-#include "content/public/browser/storage_partition.h" |
#include "ipc/ipc_platform_file.h" |
using content::BrowserThread; |
@@ -88,9 +87,7 @@ |
&language_code, |
&country_code); |
feedback_sender_.reset(new spellcheck::FeedbackSender( |
- content::BrowserContext::GetDefaultStoragePartition(context)-> |
- GetURLRequestContext(), |
- language_code, country_code)); |
+ context->GetRequestContext(), language_code, country_code)); |
pref_change_registrar_.Add( |
prefs::kSpellCheckDictionaries, |
@@ -229,10 +226,7 @@ |
std::string dictionary; |
dictionary_value->GetAsString(&dictionary); |
hunspell_dictionaries_.push_back(new SpellcheckHunspellDictionary( |
- dictionary, |
- content::BrowserContext::GetDefaultStoragePartition(context_)-> |
- GetURLRequestContext(), |
- this)); |
+ dictionary, context_->GetRequestContext(), this)); |
hunspell_dictionaries_.back()->AddObserver(this); |
hunspell_dictionaries_.back()->Load(); |
} |