Index: chrome/browser/autocomplete_history_manager.cc |
diff --git a/chrome/browser/autocomplete_history_manager.cc b/chrome/browser/autocomplete_history_manager.cc |
index bf64c35c1f4f896993e31ede6c669b66042bb221..6c44366cf62a7564caf519d00553b9fe0f2184b7 100644 |
--- a/chrome/browser/autocomplete_history_manager.cc |
+++ b/chrome/browser/autocomplete_history_manager.cc |
@@ -103,7 +103,7 @@ AutocompleteHistoryManager::AutocompleteHistoryManager( |
: TabContentsObserver(tab_contents), |
pending_query_handle_(0), |
query_id_(0) { |
- profile_ = tab_contents->profile(); |
+ profile_ = static_cast<Profile*>(tab_contents->browser_context()); |
// May be NULL in unit tests. |
web_data_service_ = profile_->GetWebDataService(Profile::EXPLICIT_ACCESS); |
autofill_enabled_.Init(prefs::kAutofillEnabled, profile_->GetPrefs(), NULL); |