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

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

Issue 18263: Move search engines files into subdir (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.h ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/new_tab_ui.h" 5 #include "chrome/browser/dom_ui/new_tab_ui.h"
6 6
7 #include "base/histogram.h" 7 #include "base/histogram.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "chrome/app/locales/locale_settings.h" 9 #include "chrome/app/locales/locale_settings.h"
10 #include "chrome/browser/bookmarks/bookmark_utils.h" 10 #include "chrome/browser/bookmarks/bookmark_utils.h"
11 #include "chrome/browser/browser.h" 11 #include "chrome/browser/browser.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/browser_resources.h" 13 #include "chrome/browser/browser_resources.h"
14 #include "chrome/browser/dom_ui/dom_ui_contents.h" 14 #include "chrome/browser/dom_ui/dom_ui_contents.h"
15 #include "chrome/browser/history_tab_ui.h" 15 #include "chrome/browser/history_tab_ui.h"
16 #include "chrome/browser/history/page_usage_data.h" 16 #include "chrome/browser/history/page_usage_data.h"
17 #include "chrome/browser/profile.h" 17 #include "chrome/browser/profile.h"
18 #include "chrome/browser/render_view_host.h" 18 #include "chrome/browser/render_view_host.h"
19 #include "chrome/browser/sessions/session_types.h" 19 #include "chrome/browser/sessions/session_types.h"
20 #include "chrome/browser/tab_contents/navigation_entry.h" 20 #include "chrome/browser/tab_contents/navigation_entry.h"
21 #include "chrome/browser/template_url.h" 21 #include "chrome/browser/search_engines/template_url.h"
22 #include "chrome/browser/user_data_manager.h" 22 #include "chrome/browser/user_data_manager.h"
23 #include "chrome/browser/user_metrics.h" 23 #include "chrome/browser/user_metrics.h"
24 #include "chrome/browser/views/keyword_editor_view.h" 24 #include "chrome/browser/views/keyword_editor_view.h"
25 #include "chrome/common/jstemplate_builder.h" 25 #include "chrome/common/jstemplate_builder.h"
26 #include "chrome/common/l10n_util.h" 26 #include "chrome/common/l10n_util.h"
27 #include "chrome/common/pref_names.h" 27 #include "chrome/common/pref_names.h"
28 #include "chrome/common/pref_service.h" 28 #include "chrome/common/pref_service.h"
29 #include "chrome/common/resource_bundle.h" 29 #include "chrome/common/resource_bundle.h"
30 30
31 #include "chromium_strings.h" 31 #include "chromium_strings.h"
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 void NewTabUIContents::RequestOpenURL(const GURL& url, 863 void NewTabUIContents::RequestOpenURL(const GURL& url,
864 const GURL& /*referrer*/, 864 const GURL& /*referrer*/,
865 WindowOpenDisposition disposition) { 865 WindowOpenDisposition disposition) {
866 // The user opened a URL on the page (including "open in new window"). 866 // The user opened a URL on the page (including "open in new window").
867 // We count all such clicks as AUTO_BOOKMARK, which increments the site's 867 // We count all such clicks as AUTO_BOOKMARK, which increments the site's
868 // visit count (which is used for ranking the most visited entries). 868 // visit count (which is used for ranking the most visited entries).
869 // Note this means we're including clicks on not only most visited thumbnails, 869 // Note this means we're including clicks on not only most visited thumbnails,
870 // but also clicks on recently bookmarked. 870 // but also clicks on recently bookmarked.
871 OpenURL(url, GURL(), disposition, PageTransition::AUTO_BOOKMARK); 871 OpenURL(url, GURL(), disposition, PageTransition::AUTO_BOOKMARK);
872 } 872 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_ui.h ('k') | chrome/browser/history/history.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698