Index: chrome/browser/history/in_memory_history_backend.cc |
=================================================================== |
--- chrome/browser/history/in_memory_history_backend.cc (revision 56967) |
+++ chrome/browser/history/in_memory_history_backend.cc (working copy) |
@@ -7,17 +7,14 @@ |
#include "base/command_line.h" |
#include "base/histogram.h" |
#include "base/time.h" |
-#include "base/utf_string_conversions.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/history/history_notifications.h" |
#include "chrome/browser/history/in_memory_database.h" |
#include "chrome/browser/history/in_memory_url_index.h" |
#include "chrome/browser/history/url_database.h" |
-#include "chrome/browser/pref_service.h" |
#include "chrome/browser/profile.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/notification_service.h" |
-#include "chrome/common/pref_names.h" |
namespace history { |
@@ -39,11 +36,9 @@ |
if (CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableInMemoryURLIndex)) { |
- index_.reset(new InMemoryURLIndex()); |
+ index_.reset(new InMemoryURLIndex); |
base::TimeTicks beginning_time = base::TimeTicks::Now(); |
- string16 languages = |
- UTF8ToUTF16(profile_->GetPrefs()->GetString(prefs::kAcceptLanguages)); |
- index_->Init(db, languages); |
+ index_->Init(db); |
UMA_HISTOGRAM_TIMES("Autocomplete.HistoryDatabaseIndexingTime", |
base::TimeTicks::Now() - beginning_time); |
} |