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

Unified Diff: chrome/browser/page_info_window.cc

Issue 159521: Implementation of the page info dialog on Linux Gtk. (Closed)
Patch Set: Fix build Created 11 years, 5 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/page_info_window.h ('k') | chrome/browser/views/browser_dialogs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/page_info_window.cc
diff --git a/chrome/browser/page_info_window.cc b/chrome/browser/page_info_window.cc
deleted file mode 100644
index c18ef069c3e15f00b26c9ca412ad15fdc81b03f8..0000000000000000000000000000000000000000
--- a/chrome/browser/page_info_window.cc
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/page_info_window.h"
-
-#include "chrome/common/pref_names.h"
-#include "chrome/common/pref_service.h"
-
-PageInfoWindow::PageInfoWindow() : cert_id_(0) {
-}
-
-PageInfoWindow::~PageInfoWindow() {
-}
-
-#if defined(OS_LINUX)
-// TODO(rsesek): Remove once we have a PageInfoWindowLinux implementation
-PageInfoWindow* PageInfoWindow::Factory() {
- NOTIMPLEMENTED();
- return NULL;
-}
-#endif
-
-// static
-void PageInfoWindow::CreatePageInfo(Profile* profile,
- NavigationEntry* nav_entry,
- gfx::NativeView parent,
- PageInfoWindow::TabID tab) {
- PageInfoWindow* window = Factory();
- window->Init(profile, nav_entry->url(), nav_entry->ssl(),
- nav_entry->page_type(), true, parent);
- window->Show();
-}
-
-// static
-void PageInfoWindow::CreateFrameInfo(Profile* profile,
- const GURL& url,
- const NavigationEntry::SSLStatus& ssl,
- gfx::NativeView parent,
- TabID tab) {
- PageInfoWindow* window = Factory();
- window->Init(profile, url, ssl, NavigationEntry::NORMAL_PAGE,
- false, parent);
- window->Show();
-}
-
-// static
-void PageInfoWindow::RegisterPrefs(PrefService* prefs) {
- prefs->RegisterDictionaryPref(prefs::kPageInfoWindowPlacement);
-}
-
-// static
-std::string PageInfoWindow::GetIssuerName(
- const net::X509Certificate::Principal& issuer) {
- if (!issuer.common_name.empty())
- return issuer.common_name;
- if (!issuer.organization_names.empty())
- return issuer.organization_names[0];
- if (!issuer.organization_unit_names.empty())
- return issuer.organization_unit_names[0];
-
- return std::string();
-}
« no previous file with comments | « chrome/browser/page_info_window.h ('k') | chrome/browser/views/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698