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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 12089102: Make most code on mac compile with enable_web_intents=0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ffff 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.h ('k') | chrome/browser/ui/omnibox/location_bar.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 18b9615e5e2270d1ba365798f5a9540d15b8df28..598ead6b46fe5f927bf73a2d0822f79444a2e2de 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -740,7 +740,9 @@ void LocationBarViewGtk::Update(const WebContents* contents) {
UpdateSiteTypeArea();
UpdateContentSettingsIcons();
UpdatePageActions();
+#if defined(ENABLE_WEB_INTENTS)
UpdateWebIntentsButton();
+#endif
location_entry_->Update(contents);
// The security level (background color) could have changed, etc.
if (theme_service_->UsingNativeTheme()) {
@@ -1032,11 +1034,13 @@ void LocationBarViewGtk::InvalidatePageActions() {
}
}
+#if defined(ENABLE_WEB_INTENTS)
void LocationBarViewGtk::UpdateWebIntentsButton() {
web_intents_button_view_->Update(GetWebContents());
gtk_widget_set_visible(web_intents_hbox_.get(),
web_intents_button_view_->IsVisible());
}
+#endif
void LocationBarViewGtk::UpdateOpenPDFInReaderPrompt() {
// Not implemented on Gtk.
@@ -1179,7 +1183,9 @@ void LocationBarViewGtk::Observe(int type,
UpdateStarIcon();
UpdateSiteTypeArea();
UpdateContentSettingsIcons();
+#if defined(ENABLE_WEB_INTENTS)
UpdateWebIntentsButton();
+#endif
break;
}
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.h ('k') | chrome/browser/ui/omnibox/location_bar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698