OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/data_reduction_proxy/content/browser/data_reduction_proxy_d
ebug_blocking_page.h" | 5 #include "components/data_reduction_proxy/content/browser/data_reduction_proxy_d
ebug_blocking_page.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/macros.h" |
10 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
12 #include "base/values.h" | 13 #include "base/values.h" |
13 #include "content/public/browser/interstitial_page.h" | 14 #include "content/public/browser/interstitial_page.h" |
14 #include "content/public/browser/render_view_host.h" | 15 #include "content/public/browser/render_view_host.h" |
15 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
16 #include "grit/components_resources.h" | 17 #include "grit/components_resources.h" |
17 #include "grit/components_strings.h" | 18 #include "grit/components_strings.h" |
18 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 l10n_util::GetStringUTF16( | 322 l10n_util::GetStringUTF16( |
322 IDS_DATA_REDUCTION_PROXY_CANNOT_PROXY_SECONDARY_PARAGRAPH)); | 323 IDS_DATA_REDUCTION_PROXY_CANNOT_PROXY_SECONDARY_PARAGRAPH)); |
323 | 324 |
324 std::string html = | 325 std::string html = |
325 ResourceBundle::GetSharedInstance().GetRawDataResource( | 326 ResourceBundle::GetSharedInstance().GetRawDataResource( |
326 IDR_DATA_REDUCTION_PROXY_INTERSTITIAL_HTML).as_string(); | 327 IDR_DATA_REDUCTION_PROXY_INTERSTITIAL_HTML).as_string(); |
327 return webui::GetI18nTemplateHtml(html, &load_time_data); | 328 return webui::GetI18nTemplateHtml(html, &load_time_data); |
328 } | 329 } |
329 | 330 |
330 } // namespace data_reduction_proxy | 331 } // namespace data_reduction_proxy |
OLD | NEW |