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

Side by Side Diff: ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.cc

Issue 1662523004: Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 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 // Implementation of the SafeBrowsingBlockingPage class. 5 // Implementation of the SafeBrowsingBlockingPage class.
6 6
7 #include "ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 7 #include "ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/metrics/field_trial.h" 16 #include "base/metrics/field_trial.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/prefs/pref_service.h"
19 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/string_piece.h" 19 #include "base/strings/string_piece.h"
21 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
22 #include "base/strings/utf_string_conversions.h" 21 #include "base/strings/utf_string_conversions.h"
23 #include "base/time/time.h" 22 #include "base/time/time.h"
24 #include "base/values.h" 23 #include "base/values.h"
25 #include "components/google/core/browser/google_util.h" 24 #include "components/google/core/browser/google_util.h"
25 #include "components/prefs/pref_service.h"
26 #include "components/security_interstitials/core/controller_client.h" 26 #include "components/security_interstitials/core/controller_client.h"
27 #include "ios/chrome/browser/application_context.h" 27 #include "ios/chrome/browser/application_context.h"
28 #include "ios/chrome/browser/chrome_url_constants.h" 28 #include "ios/chrome/browser/chrome_url_constants.h"
29 #include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h" 29 #include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h"
30 #include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h" 30 #include "ios/chrome/browser/interstitials/ios_chrome_metrics_helper.h"
31 #include "ios/chrome/browser/pref_names.h" 31 #include "ios/chrome/browser/pref_names.h"
32 #include "ios/chrome/browser/safe_browsing/ui_manager.h" 32 #include "ios/chrome/browser/safe_browsing/ui_manager.h"
33 #include "ios/chrome/grit/ios_strings.h" 33 #include "ios/chrome/grit/ios_strings.h"
34 #include "ios/web/public/interstitials/web_interstitial.h" 34 #include "ios/web/public/interstitials/web_interstitial.h"
35 #include "ios/web/public/navigation_manager.h" 35 #include "ios/web/public/navigation_manager.h"
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 } else { 590 } else {
591 load_time_data->SetString( 591 load_time_data->SetString(
592 "finalParagraph", 592 "finalParagraph",
593 l10n_util::GetStringUTF16(IDS_IOS_PHISHING_V3_PROCEED_PARAGRAPH)); 593 l10n_util::GetStringUTF16(IDS_IOS_PHISHING_V3_PROCEED_PARAGRAPH));
594 } 594 }
595 595
596 load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false); 596 load_time_data->SetBoolean(security_interstitials::kDisplayCheckBox, false);
597 } 597 }
598 598
599 } // namespace safe_browsing 599 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « ios/chrome/browser/prefs/pref_observer_bridge.mm ('k') | ios/chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698