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

Side by Side Diff: chrome/browser/dom_ui/most_visited_handler.cc

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/most_visited_handler.h" 5 #include "chrome/browser/dom_ui/most_visited_handler.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 21 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
22 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" 22 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h"
23 #include "chrome/browser/dom_ui/dom_ui_thumbnail_source.h" 23 #include "chrome/browser/dom_ui/dom_ui_thumbnail_source.h"
24 #include "chrome/browser/dom_ui/new_tab_ui.h" 24 #include "chrome/browser/dom_ui/new_tab_ui.h"
25 #include "chrome/browser/history/page_usage_data.h" 25 #include "chrome/browser/history/page_usage_data.h"
26 #include "chrome/browser/history/history.h" 26 #include "chrome/browser/history/history.h"
27 #include "chrome/browser/history/top_sites.h" 27 #include "chrome/browser/history/top_sites.h"
28 #include "chrome/browser/metrics/user_metrics.h" 28 #include "chrome/browser/metrics/user_metrics.h"
29 #include "chrome/browser/prefs/pref_service.h" 29 #include "chrome/browser/prefs/pref_service.h"
30 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/common/chrome_switches.h"
32 #include "chrome/common/notification_type.h" 31 #include "chrome/common/notification_type.h"
33 #include "chrome/common/notification_source.h" 32 #include "chrome/common/notification_source.h"
34 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
35 #include "googleurl/src/gurl.h" 34 #include "googleurl/src/gurl.h"
36 #include "grit/chromium_strings.h" 35 #include "grit/chromium_strings.h"
37 #include "grit/generated_resources.h" 36 #include "grit/generated_resources.h"
38 #include "grit/locale_settings.h" 37 #include "grit/locale_settings.h"
39 38
40 namespace { 39 namespace {
41 40
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 549
551 // static 550 // static
552 std::vector<GURL> MostVisitedHandler::GetPrePopulatedUrls() { 551 std::vector<GURL> MostVisitedHandler::GetPrePopulatedUrls() {
553 const std::vector<MostVisitedPage> pages = 552 const std::vector<MostVisitedPage> pages =
554 MostVisitedHandler::GetPrePopulatedPages(); 553 MostVisitedHandler::GetPrePopulatedPages();
555 std::vector<GURL> page_urls; 554 std::vector<GURL> page_urls;
556 for (size_t i = 0; i < pages.size(); ++i) 555 for (size_t i = 0; i < pages.size(); ++i)
557 page_urls.push_back(pages[i].url); 556 page_urls.push_back(pages[i].url);
558 return page_urls; 557 return page_urls;
559 } 558 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698