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

Side by Side Diff: chrome/browser/ui/tab_helpers.cc

Issue 1202713002: Replace enhanced bookmarks salient images with favicons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Line wraps in EnhanacedBookmarkItem.java Created 5 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/tab_helpers.h" 5 #include "chrome/browser/ui/tab_helpers.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/content_settings/chrome_content_settings_client.h" 9 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "components/autofill/core/browser/autofill_manager.h" 42 #include "components/autofill/core/browser/autofill_manager.h"
43 #include "components/dom_distiller/content/web_contents_main_frame_observer.h" 43 #include "components/dom_distiller/content/web_contents_main_frame_observer.h"
44 #include "components/history/content/browser/web_contents_top_sites_observer.h" 44 #include "components/history/content/browser/web_contents_top_sites_observer.h"
45 #include "components/history/core/browser/top_sites.h" 45 #include "components/history/core/browser/top_sites.h"
46 #include "components/password_manager/core/browser/password_manager.h" 46 #include "components/password_manager/core/browser/password_manager.h"
47 #include "content/public/browser/web_contents.h" 47 #include "content/public/browser/web_contents.h"
48 48
49 #if defined(OS_ANDROID) 49 #if defined(OS_ANDROID)
50 #include "chrome/browser/android/voice_search_tab_helper.h" 50 #include "chrome/browser/android/voice_search_tab_helper.h"
51 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h" 51 #include "chrome/browser/android/webapps/single_tab_mode_tab_helper.h"
52 #include "chrome/browser/enhanced_bookmarks/android/enhanced_bookmark_tab_helper .h"
53 #include "chrome/browser/ui/android/context_menu_helper.h" 52 #include "chrome/browser/ui/android/context_menu_helper.h"
54 #include "chrome/browser/ui/android/window_android_helper.h" 53 #include "chrome/browser/ui/android/window_android_helper.h"
55 #else 54 #else
56 #include "chrome/browser/banners/app_banner_manager_desktop.h" 55 #include "chrome/browser/banners/app_banner_manager_desktop.h"
57 #include "chrome/browser/plugins/plugin_observer.h" 56 #include "chrome/browser/plugins/plugin_observer.h"
58 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h" 57 #include "chrome/browser/safe_browsing/safe_browsing_tab_observer.h"
59 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h" 58 #include "chrome/browser/thumbnails/thumbnail_tab_helper.h"
60 #include "chrome/browser/ui/hung_plugin_tab_helper.h" 59 #include "chrome/browser/ui/hung_plugin_tab_helper.h"
61 #include "chrome/browser/ui/sad_tab_helper.h" 60 #include "chrome/browser/ui/sad_tab_helper.h"
62 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" 61 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 if (SiteEngagementService::IsEnabled()) 167 if (SiteEngagementService::IsEnabled())
169 SiteEngagementHelper::CreateForWebContents(web_contents); 168 SiteEngagementHelper::CreateForWebContents(web_contents);
170 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 169 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
171 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 170 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
172 TabSpecificContentSettings::CreateForWebContents(web_contents); 171 TabSpecificContentSettings::CreateForWebContents(web_contents);
173 172
174 // --- Platform-specific tab helpers --- 173 // --- Platform-specific tab helpers ---
175 174
176 #if defined(OS_ANDROID) 175 #if defined(OS_ANDROID)
177 ContextMenuHelper::CreateForWebContents(web_contents); 176 ContextMenuHelper::CreateForWebContents(web_contents);
178 EnhancedBookmarkTabHelper::CreateForWebContents(web_contents);
179 SingleTabModeTabHelper::CreateForWebContents(web_contents); 177 SingleTabModeTabHelper::CreateForWebContents(web_contents);
180 VoiceSearchTabHelper::CreateForWebContents(web_contents); 178 VoiceSearchTabHelper::CreateForWebContents(web_contents);
181 WindowAndroidHelper::CreateForWebContents(web_contents); 179 WindowAndroidHelper::CreateForWebContents(web_contents);
182 #else 180 #else
183 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents( 181 extensions::ChromeExtensionWebContentsObserver::CreateForWebContents(
184 web_contents); 182 web_contents);
185 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents); 183 extensions::WebNavigationTabObserver::CreateForWebContents(web_contents);
186 HungPluginTabHelper::CreateForWebContents(web_contents); 184 HungPluginTabHelper::CreateForWebContents(web_contents);
187 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient( 185 pdf::PDFWebContentsHelper::CreateForWebContentsWithClient(
188 web_contents, 186 web_contents,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 web_contents); 241 web_contents);
244 } 242 }
245 243
246 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 244 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
247 switches::kEnableNavigationTracing) && 245 switches::kEnableNavigationTracing) &&
248 base::CommandLine::ForCurrentProcess()->HasSwitch( 246 base::CommandLine::ForCurrentProcess()->HasSwitch(
249 switches::kTraceUploadURL)) { 247 switches::kTraceUploadURL)) {
250 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 248 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
251 } 249 }
252 } 250 }
OLDNEW
« no previous file with comments | « chrome/browser/enhanced_bookmarks/android/enhanced_bookmarks_bridge.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698