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

Side by Side Diff: chrome/browser/ui/page_info/page_info_ui.cc

Issue 2737413004: Add a Certificate Viewer link to the Page Info dropdown (Closed)
Patch Set: Add Cocoa, Fix MaxViews, Add Flag Created 3 years, 8 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
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/page_info/page_info_ui.h" 5 #include "chrome/browser/ui/page_info/page_info_ui.h"
6 6
7 #include <utility>
8
7 #include "base/macros.h" 9 #include "base/macros.h"
8 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
9 #include "chrome/browser/plugins/plugin_utils.h" 11 #include "chrome/browser/plugins/plugin_utils.h"
10 #include "chrome/browser/plugins/plugins_field_trial.h" 12 #include "chrome/browser/plugins/plugins_field_trial.h"
11 #include "chrome/common/chrome_features.h" 13 #include "chrome/common/chrome_features.h"
12 #include "chrome/grit/chromium_strings.h" 14 #include "chrome/grit/chromium_strings.h"
13 #include "chrome/grit/generated_resources.h" 15 #include "chrome/grit/generated_resources.h"
14 #include "chrome/grit/theme_resources.h" 16 #include "chrome/grit/theme_resources.h"
15 #include "components/strings/grit/components_strings.h" 17 #include "components/strings/grit/components_strings.h"
16 #include "ppapi/features/features.h" 18 #include "ppapi/features/features.h"
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 } 379 }
378 return resource_id; 380 return resource_id;
379 } 381 }
380 382
381 // static 383 // static
382 const gfx::Image& PageInfoUI::GetConnectionIcon( 384 const gfx::Image& PageInfoUI::GetConnectionIcon(
383 PageInfo::SiteConnectionStatus status) { 385 PageInfo::SiteConnectionStatus status) {
384 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 386 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
385 return rb.GetNativeImageNamed(GetConnectionIconID(status)); 387 return rb.GetNativeImageNamed(GetConnectionIconID(status));
386 } 388 }
389
390 // static
391 const gfx::Image& PageInfoUI::GetCertificateIcon() {
392 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
393 return rb.GetNativeImageNamed(IDR_CERTIFICATE);
394 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698