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

Side by Side Diff: chrome/browser/ui/webui/ntp/most_visited_handler.cc

Issue 11740018: Cleanup: Remove more unneeded browser_thread.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h" 5 #include "chrome/browser/ui/webui/ntp/most_visited_handler.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/prefs/scoped_user_pref_update.h" 24 #include "chrome/browser/prefs/scoped_user_pref_update.h"
25 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 26 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
27 #include "chrome/browser/ui/webui/favicon_source.h" 27 #include "chrome/browser/ui/webui/favicon_source.h"
28 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" 28 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h"
29 #include "chrome/browser/ui/webui/ntp/ntp_stats.h" 29 #include "chrome/browser/ui/webui/ntp/ntp_stats.h"
30 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h" 30 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h"
31 #include "chrome/common/chrome_notification_types.h" 31 #include "chrome/common/chrome_notification_types.h"
32 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
33 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
34 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/navigation_controller.h" 34 #include "content/public/browser/navigation_controller.h"
36 #include "content/public/browser/navigation_entry.h" 35 #include "content/public/browser/navigation_entry.h"
37 #include "content/public/browser/notification_source.h" 36 #include "content/public/browser/notification_source.h"
38 #include "content/public/browser/user_metrics.h" 37 #include "content/public/browser/user_metrics.h"
39 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
40 #include "content/public/browser/web_ui.h" 39 #include "content/public/browser/web_ui.h"
41 #include "googleurl/src/gurl.h" 40 #include "googleurl/src/gurl.h"
42 #include "grit/chromium_strings.h" 41 #include "grit/chromium_strings.h"
43 #include "grit/generated_resources.h" 42 #include "grit/generated_resources.h"
44 #include "grit/locale_settings.h" 43 #include "grit/locale_settings.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 253
255 std::string MostVisitedHandler::GetDictionaryKeyForUrl(const std::string& url) { 254 std::string MostVisitedHandler::GetDictionaryKeyForUrl(const std::string& url) {
256 return base::MD5String(url); 255 return base::MD5String(url);
257 } 256 }
258 257
259 // static 258 // static
260 void MostVisitedHandler::RegisterUserPrefs(PrefServiceSyncable* prefs) { 259 void MostVisitedHandler::RegisterUserPrefs(PrefServiceSyncable* prefs) {
261 prefs->RegisterDictionaryPref(prefs::kNtpMostVisitedURLsBlacklist, 260 prefs->RegisterDictionaryPref(prefs::kNtpMostVisitedURLsBlacklist,
262 PrefServiceSyncable::UNSYNCABLE_PREF); 261 PrefServiceSyncable::UNSYNCABLE_PREF);
263 } 262 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/system_info_ui.cc ('k') | chrome/browser/ui/webui/ntp/suggestions_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698