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

Side by Side Diff: chrome/browser/ui/views/download/download_feedback_dialog_view.cc

Issue 445493002: Delete the Safe Browsing V2 interstitial and Finch trial (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing binary files Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/ui/views/download/download_feedback_dialog_view.h" 5 #include "chrome/browser/ui/views/download/download_feedback_dialog_view.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "chrome/browser/platform_util.h" 10 #include "chrome/browser/platform_util.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 Profile* profile, 69 Profile* profile,
70 content::PageNavigator* navigator, 70 content::PageNavigator* navigator,
71 const UserDecisionCallback& callback) 71 const UserDecisionCallback& callback)
72 : profile_(profile), 72 : profile_(profile),
73 navigator_(navigator), 73 navigator_(navigator),
74 callback_(callback), 74 callback_(callback),
75 explanation_box_view_(new views::MessageBoxView( 75 explanation_box_view_(new views::MessageBoxView(
76 views::MessageBoxView::InitParams(l10n_util::GetStringUTF16( 76 views::MessageBoxView::InitParams(l10n_util::GetStringUTF16(
77 IDS_FEEDBACK_SERVICE_DIALOG_EXPLANATION)))), 77 IDS_FEEDBACK_SERVICE_DIALOG_EXPLANATION)))),
78 link_view_(new views::Link(l10n_util::GetStringUTF16( 78 link_view_(new views::Link(l10n_util::GetStringUTF16(
79 IDS_SAFE_BROWSING_PRIVACY_POLICY_PAGE_V2))), 79 IDS_SAFE_BROWSING_PRIVACY_POLICY_PAGE))),
80 title_text_(l10n_util::GetStringUTF16(IDS_FEEDBACK_SERVICE_DIALOG_TITLE)), 80 title_text_(l10n_util::GetStringUTF16(IDS_FEEDBACK_SERVICE_DIALOG_TITLE)),
81 ok_button_text_(l10n_util::GetStringUTF16( 81 ok_button_text_(l10n_util::GetStringUTF16(
82 IDS_FEEDBACK_SERVICE_DIALOG_OK_BUTTON_LABEL)), 82 IDS_FEEDBACK_SERVICE_DIALOG_OK_BUTTON_LABEL)),
83 cancel_button_text_(l10n_util::GetStringUTF16( 83 cancel_button_text_(l10n_util::GetStringUTF16(
84 IDS_FEEDBACK_SERVICE_DIALOG_CANCEL_BUTTON_LABEL)) { 84 IDS_FEEDBACK_SERVICE_DIALOG_CANCEL_BUTTON_LABEL)) {
85 link_view_->set_listener(this); 85 link_view_->set_listener(this);
86 } 86 }
87 87
88 DownloadFeedbackDialogView::~DownloadFeedbackDialogView() {} 88 DownloadFeedbackDialogView::~DownloadFeedbackDialogView() {}
89 89
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 views::Link* source, int event_flags) { 151 views::Link* source, int event_flags) {
152 WindowOpenDisposition disposition = 152 WindowOpenDisposition disposition =
153 ui::DispositionFromEventFlags(event_flags); 153 ui::DispositionFromEventFlags(event_flags);
154 content::OpenURLParams params( 154 content::OpenURLParams params(
155 GURL(l10n_util::GetStringUTF8(IDS_SAFE_BROWSING_PRIVACY_POLICY_URL)), 155 GURL(l10n_util::GetStringUTF8(IDS_SAFE_BROWSING_PRIVACY_POLICY_URL)),
156 content::Referrer(), 156 content::Referrer(),
157 disposition == CURRENT_TAB ? NEW_FOREGROUND_TAB : disposition, 157 disposition == CURRENT_TAB ? NEW_FOREGROUND_TAB : disposition,
158 content::PAGE_TRANSITION_LINK, false); 158 content::PAGE_TRANSITION_LINK, false);
159 navigator_->OpenURL(params); 159 navigator_->OpenURL(params);
160 } 160 }
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698