| OLD | NEW |
| 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/page_info/page_info_ui.h" | 5 #include "chrome/browser/ui/page_info/page_info_ui.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 11 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 12 #include "chrome/browser/permissions/permission_manager.h" | 12 #include "chrome/browser/permissions/permission_manager.h" |
| 13 #include "chrome/browser/permissions/permission_result.h" | 13 #include "chrome/browser/permissions/permission_result.h" |
| 14 #include "chrome/browser/permissions/permission_util.h" | 14 #include "chrome/browser/permissions/permission_util.h" |
| 15 #include "chrome/browser/plugins/plugin_utils.h" | 15 #include "chrome/browser/plugins/plugin_utils.h" |
| 16 #include "chrome/browser/plugins/plugins_field_trial.h" | 16 #include "chrome/browser/plugins/plugins_field_trial.h" |
| 17 #include "chrome/common/chrome_features.h" | 17 #include "chrome/common/chrome_features.h" |
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 19 #include "chrome/grit/chromium_strings.h" | |
| 20 #include "chrome/grit/generated_resources.h" | 19 #include "chrome/grit/generated_resources.h" |
| 21 #include "chrome/grit/theme_resources.h" | 20 #include "chrome/grit/theme_resources.h" |
| 22 #include "components/strings/grit/components_chromium_strings.h" | 21 #include "components/strings/grit/components_chromium_strings.h" |
| 23 #include "components/strings/grit/components_strings.h" | 22 #include "components/strings/grit/components_strings.h" |
| 24 #include "ppapi/features/features.h" | 23 #include "ppapi/features/features.h" |
| 25 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| 26 #include "ui/base/resource/resource_bundle.h" | 25 #include "ui/base/resource/resource_bundle.h" |
| 27 #include "ui/gfx/image/image.h" | 26 #include "ui/gfx/image/image.h" |
| 28 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 29 | 28 |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 const gfx::ImageSkia PageInfoUI::GetCertificateIcon() { | 444 const gfx::ImageSkia PageInfoUI::GetCertificateIcon() { |
| 446 return gfx::CreateVectorIcon(kCertificateIcon, 16, gfx::kChromeIconGrey); | 445 return gfx::CreateVectorIcon(kCertificateIcon, 16, gfx::kChromeIconGrey); |
| 447 } | 446 } |
| 448 #endif | 447 #endif |
| 449 | 448 |
| 450 // static | 449 // static |
| 451 bool PageInfoUI::ShouldShowCertificateLink() { | 450 bool PageInfoUI::ShouldShowCertificateLink() { |
| 452 return base::CommandLine::ForCurrentProcess()->HasSwitch( | 451 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 453 switches::kShowCertLink); | 452 switches::kShowCertLink); |
| 454 } | 453 } |
| OLD | NEW |