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

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

Issue 11929016: Move jstemplate_builder.* to ui\webui so it can be reused by webui implementations outside of chrom… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to 177705 to get yfriendman's fix Created 7 years, 11 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 | Annotate | Revision Log
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 // Implementation of the SafeBrowsingBlockingPage class. 5 // Implementation of the SafeBrowsingBlockingPage class.
6 6
7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 7 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/values.h" 21 #include "base/values.h"
22 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
23 #include "chrome/browser/google/google_util.h" 23 #include "chrome/browser/google/google_util.h"
24 #include "chrome/browser/prefs/pref_service.h" 24 #include "chrome/browser/prefs/pref_service.h"
25 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/renderer_preferences_util.h" 26 #include "chrome/browser/renderer_preferences_util.h"
27 #include "chrome/browser/safe_browsing/malware_details.h" 27 #include "chrome/browser/safe_browsing/malware_details.h"
28 #include "chrome/browser/safe_browsing/ui_manager.h" 28 #include "chrome/browser/safe_browsing/ui_manager.h"
29 #include "chrome/browser/tab_contents/tab_util.h" 29 #include "chrome/browser/tab_contents/tab_util.h"
30 #include "chrome/browser/ui/webui/web_ui_util.h" 30 #include "chrome/browser/ui/webui/web_ui_util.h"
31 #include "chrome/common/jstemplate_builder.h"
32 #include "chrome/common/pref_names.h" 31 #include "chrome/common/pref_names.h"
33 #include "chrome/common/url_constants.h" 32 #include "chrome/common/url_constants.h"
34 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
35 #include "content/public/browser/interstitial_page.h" 34 #include "content/public/browser/interstitial_page.h"
36 #include "content/public/browser/navigation_controller.h" 35 #include "content/public/browser/navigation_controller.h"
37 #include "content/public/browser/user_metrics.h" 36 #include "content/public/browser/user_metrics.h"
38 #include "content/public/browser/web_contents.h" 37 #include "content/public/browser/web_contents.h"
39 #include "grit/browser_resources.h" 38 #include "grit/browser_resources.h"
40 #include "grit/chromium_strings.h" 39 #include "grit/chromium_strings.h"
41 #include "grit/generated_resources.h" 40 #include "grit/generated_resources.h"
42 #include "grit/locale_settings.h" 41 #include "grit/locale_settings.h"
43 #include "net/base/escape.h" 42 #include "net/base/escape.h"
44 #include "ui/base/l10n/l10n_util.h" 43 #include "ui/base/l10n/l10n_util.h"
45 #include "ui/base/resource/resource_bundle.h" 44 #include "ui/base/resource/resource_bundle.h"
45 #include "ui/webui/jstemplate_builder.h"
46 46
47 using content::BrowserThread; 47 using content::BrowserThread;
48 using content::InterstitialPage; 48 using content::InterstitialPage;
49 using content::OpenURLParams; 49 using content::OpenURLParams;
50 using content::Referrer; 50 using content::Referrer;
51 using content::UserMetricsAction; 51 using content::UserMetricsAction;
52 using content::WebContents; 52 using content::WebContents;
53 53
54 // For malware interstitial pages, we link the problematic URL to Google's 54 // For malware interstitial pages, we link the problematic URL to Google's
55 // diagnostic page. 55 // diagnostic page.
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 1043
1044 strings->SetString("details", ""); 1044 strings->SetString("details", "");
1045 strings->SetString("confirm_text", ""); 1045 strings->SetString("confirm_text", "");
1046 strings->SetString(kBoxChecked, ""); 1046 strings->SetString(kBoxChecked, "");
1047 strings->SetString("report_error", 1047 strings->SetString("report_error",
1048 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_PHISHING_V2_REPORT_ERROR)); 1048 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_PHISHING_V2_REPORT_ERROR));
1049 strings->SetBoolean(kDisplayCheckBox, false); 1049 strings->SetBoolean(kDisplayCheckBox, false);
1050 strings->SetString("learnMore", 1050 strings->SetString("learnMore",
1051 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_V2_LEARN_MORE)); 1051 l10n_util::GetStringUTF16(IDS_SAFE_BROWSING_MALWARE_V2_LEARN_MORE));
1052 } 1052 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/cloud_print/cloud_print_setup_source.cc ('k') | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698