| 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..e43944f9864c4bd8fb7e0d9fe9c68fa4fdb5d0c7 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->context());
|
| // May be NULL in unit tests.
|
| web_data_service_ = profile_->GetWebDataService(Profile::EXPLICIT_ACCESS);
|
| autofill_enabled_.Init(prefs::kAutofillEnabled, profile_->GetPrefs(), NULL);
|
|
|