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

Side by Side Diff: chrome/browser/ui/gtk/page_info_bubble_gtk.cc

Issue 8224023: Don't show URL for pending new navigations initiated by the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflicts. Created 9 years, 2 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/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/sad_tab_gtk.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <gtk/gtk.h> 5 #include <gtk/gtk.h>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 void PageInfoBubbleGtk::OnViewCertLinkClicked(GtkWidget* widget) { 222 void PageInfoBubbleGtk::OnViewCertLinkClicked(GtkWidget* widget) {
223 ShowCertificateViewerByID(GTK_WINDOW(parent_), cert_id_); 223 ShowCertificateViewerByID(GTK_WINDOW(parent_), cert_id_);
224 bubble_->Close(); 224 bubble_->Close();
225 } 225 }
226 226
227 void PageInfoBubbleGtk::OnHelpLinkClicked(GtkWidget* widget) { 227 void PageInfoBubbleGtk::OnHelpLinkClicked(GtkWidget* widget) {
228 GURL url = google_util::AppendGoogleLocaleParam( 228 GURL url = google_util::AppendGoogleLocaleParam(
229 GURL(chrome::kPageInfoHelpCenterURL)); 229 GURL(chrome::kPageInfoHelpCenterURL));
230 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_); 230 Browser* browser = BrowserList::GetLastActiveWithProfile(profile_);
231 browser->OpenURL(OpenURLParams( 231 browser->OpenURL(OpenURLParams(
232 url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK)); 232 url, GURL(), NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false));
233 bubble_->Close(); 233 bubble_->Close();
234 } 234 }
235 235
236 } // namespace 236 } // namespace
237 237
238 namespace browser { 238 namespace browser {
239 239
240 void ShowPageInfoBubble(gfx::NativeWindow parent, 240 void ShowPageInfoBubble(gfx::NativeWindow parent,
241 Profile* profile, 241 Profile* profile,
242 const GURL& url, 242 const GURL& url,
243 const NavigationEntry::SSLStatus& ssl, 243 const NavigationEntry::SSLStatus& ssl,
244 bool show_history) { 244 bool show_history) {
245 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history); 245 new PageInfoBubbleGtk(parent, profile, url, ssl, show_history);
246 } 246 }
247 247
248 } // namespace browser 248 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/sad_tab_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698