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

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

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order 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/history_ui.h" 5 #include "chrome/browser/dom_ui/history_ui.h"
6 6
7 #include <algorithm>
8 #include <set>
9
7 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 11 #include "app/resource_bundle.h"
9 #include "base/callback.h" 12 #include "base/callback.h"
10 #include "base/i18n/time_formatting.h" 13 #include "base/i18n/time_formatting.h"
11 #include "base/message_loop.h" 14 #include "base/message_loop.h"
12 #include "base/singleton.h" 15 #include "base/singleton.h"
13 #include "base/string16.h" 16 #include "base/string16.h"
14 #include "base/string_number_conversions.h" 17 #include "base/string_number_conversions.h"
15 #include "base/string_piece.h" 18 #include "base/string_piece.h"
16 #include "base/thread.h" 19 #include "base/thread.h"
17 #include "base/time.h" 20 #include "base/time.h"
18 #include "base/utf_string_conversions.h" 21 #include "base/utf_string_conversions.h"
19 #include "base/values.h" 22 #include "base/values.h"
20 #include "chrome/browser/bookmarks/bookmark_model.h" 23 #include "chrome/browser/bookmarks/bookmark_model.h"
21 #include "chrome/browser/browser_thread.h" 24 #include "chrome/browser/browser_thread.h"
22 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" 25 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h"
23 #include "chrome/browser/metrics/user_metrics.h" 26 #include "chrome/browser/metrics/user_metrics.h"
24 #include "chrome/browser/history/history_types.h" 27 #include "chrome/browser/history/history_types.h"
25 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 29 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
27 #include "chrome/browser/tab_contents/tab_contents.h" 30 #include "chrome/browser/tab_contents/tab_contents.h"
28 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
29 #include "chrome/browser/ui/browser_list.h" 32 #include "chrome/browser/ui/browser_list.h"
30 #include "chrome/common/jstemplate_builder.h" 33 #include "chrome/common/jstemplate_builder.h"
31 #include "chrome/common/notification_service.h" 34 #include "chrome/common/notification_source.h"
32 #include "chrome/common/time_format.h" 35 #include "chrome/common/time_format.h"
33 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
34 #include "net/base/escape.h" 37 #include "net/base/escape.h"
35 38
36 #include "grit/browser_resources.h" 39 #include "grit/browser_resources.h"
37 #include "grit/chromium_strings.h" 40 #include "grit/chromium_strings.h"
38 #include "grit/generated_resources.h" 41 #include "grit/generated_resources.h"
39 #include "grit/locale_settings.h" 42 #include "grit/locale_settings.h"
40 #include "grit/theme_resources.h" 43 #include "grit/theme_resources.h"
41 44
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 const GURL HistoryUI::GetHistoryURLWithSearchText(const string16& text) { 402 const GURL HistoryUI::GetHistoryURLWithSearchText(const string16& text) {
400 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" + 403 return GURL(std::string(chrome::kChromeUIHistoryURL) + "#q=" +
401 EscapeQueryParamValue(UTF16ToUTF8(text), true)); 404 EscapeQueryParamValue(UTF16ToUTF8(text), true));
402 } 405 }
403 406
404 // static 407 // static
405 RefCountedMemory* HistoryUI::GetFaviconResourceBytes() { 408 RefCountedMemory* HistoryUI::GetFaviconResourceBytes() {
406 return ResourceBundle::GetSharedInstance(). 409 return ResourceBundle::GetSharedInstance().
407 LoadDataResourceBytes(IDR_HISTORY_FAVICON); 410 LoadDataResourceBytes(IDR_HISTORY_FAVICON);
408 } 411 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/history2_ui.cc ('k') | chrome/browser/dom_ui/options/about_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698