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

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

Issue 10554010: Remove BrowserList::GetLastActive usage from WebUI pages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gtk/website_settings_popup_gtk.h" 5 #include "chrome/browser/ui/gtk/website_settings_popup_gtk.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/certificate_viewer.h" 10 #include "chrome/browser/certificate_viewer.h"
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 int type = -1; 506 int type = -1;
507 gtk_tree_model_get(store, &it, 1, &value, 2, &type, -1); 507 gtk_tree_model_get(store, &it, 1, &value, 2, &type, -1);
508 508
509 if (presenter_.get()) 509 if (presenter_.get())
510 presenter_->OnSitePermissionChanged(ContentSettingsType(type), 510 presenter_->OnSitePermissionChanged(ContentSettingsType(type),
511 ContentSetting(value)); 511 ContentSetting(value));
512 } 512 }
513 513
514 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) { 514 void WebsiteSettingsPopupGtk::OnViewCertLinkClicked(GtkWidget* widget) {
515 DCHECK_NE(cert_id_, 0); 515 DCHECK_NE(cert_id_, 0);
516 ShowCertificateViewerByID(GTK_WINDOW(parent_), cert_id_); 516 ShowCertificateViewerByID(tab_contents_, GTK_WINDOW(parent_), cert_id_);
517 bubble_->Close(); 517 bubble_->Close();
518 } 518 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698