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

Side by Side Diff: components/security_interstitials/content/security_interstitial_page.cc

Issue 2869383002: Unify safe_browsing* components [1]: move safe_browsing_prefs* (Closed)
Patch Set: fix win bots Created 3 years, 7 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
« no previous file with comments | « components/security_interstitials/content/security_interstitial_controller_client.cc ('k') | no next file » | 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 "components/security_interstitials/content/security_interstitial_page.h " 5 #include "components/security_interstitials/content/security_interstitial_page.h "
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "components/grit/components_resources.h" 12 #include "components/grit/components_resources.h"
13 #include "components/prefs/pref_service.h" 13 #include "components/prefs/pref_service.h"
14 #include "components/safe_browsing_db/safe_browsing_prefs.h" 14 #include "components/safe_browsing/common/safe_browsing_prefs.h"
15 #include "components/security_interstitials/content/security_interstitial_contro ller_client.h" 15 #include "components/security_interstitials/content/security_interstitial_contro ller_client.h"
16 #include "components/security_interstitials/core/common_string_util.h" 16 #include "components/security_interstitials/core/common_string_util.h"
17 #include "content/public/browser/interstitial_page.h" 17 #include "content/public/browser/interstitial_page.h"
18 #include "content/public/browser/page_navigator.h" 18 #include "content/public/browser/page_navigator.h"
19 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 #include "ui/base/webui/jstemplate_builder.h" 21 #include "ui/base/webui/jstemplate_builder.h"
22 #include "ui/base/webui/web_ui_util.h" 22 #include "ui/base/webui/web_ui_util.h"
23 23
24 namespace security_interstitials { 24 namespace security_interstitials {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 webui::SetLoadTimeDataDefaults( 111 webui::SetLoadTimeDataDefaults(
112 controller()->GetApplicationLocale(), &load_time_data); 112 controller()->GetApplicationLocale(), &load_time_data);
113 std::string html = ResourceBundle::GetSharedInstance() 113 std::string html = ResourceBundle::GetSharedInstance()
114 .GetRawDataResource(IDR_SECURITY_INTERSTITIAL_HTML) 114 .GetRawDataResource(IDR_SECURITY_INTERSTITIAL_HTML)
115 .as_string(); 115 .as_string();
116 webui::AppendWebUiCssTextDefaults(&html); 116 webui::AppendWebUiCssTextDefaults(&html);
117 return webui::GetI18nTemplateHtml(html, &load_time_data); 117 return webui::GetI18nTemplateHtml(html, &load_time_data);
118 } 118 }
119 119
120 } // security_interstitials 120 } // security_interstitials
OLDNEW
« no previous file with comments | « components/security_interstitials/content/security_interstitial_controller_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698