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

Unified Diff: chrome/browser/safe_browsing/srt_prompt_controller.cc

Issue 2848683002: Chrome Cleaner UI: Rename SRT to ChromeCleaner (Closed)
Patch Set: Rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/safe_browsing/srt_prompt_controller.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/srt_prompt_controller.cc
diff --git a/chrome/browser/safe_browsing/srt_prompt_controller.cc b/chrome/browser/safe_browsing/srt_prompt_controller.cc
deleted file mode 100644
index 02727a78c2c76edf9e7726ab62bde7162c6a69b4..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/srt_prompt_controller.cc
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/safe_browsing/srt_prompt_controller.h"
-
-#include "base/strings/utf_string_conversions.h"
-
-namespace safe_browsing {
-
-namespace {
-
-// Some dummy strings to be displayed in the Cleaner dialog while iterating on
-// the dialog's UX design and work on the Chrome<->Cleaner IPC is ongoing.
-constexpr char kWindowTitle[] = "Clean up your computer?";
-constexpr char kMainText[] =
- "Chrome found software that harms your browsing experience. Remove related "
- "files from your computer and restore browser settings, including your "
- "search engine and home page.";
-constexpr char kAcceptButtonLabel[] = "Cleanup";
-constexpr char kAdvancedButtonLabel[] = "Advanced";
-
-} // namespace
-
-SRTPromptController::SRTPromptController() {}
-
-SRTPromptController::~SRTPromptController() = default;
-
-base::string16 SRTPromptController::GetWindowTitle() const {
- return base::UTF8ToUTF16(kWindowTitle);
-}
-
-base::string16 SRTPromptController::GetMainText() const {
- return base::UTF8ToUTF16(kMainText);
-}
-
-base::string16 SRTPromptController::GetAcceptButtonLabel() const {
- return base::UTF8ToUTF16(kAcceptButtonLabel);
-}
-
-base::string16 SRTPromptController::GetAdvancedButtonLabel() const {
- return base::UTF8ToUTF16(kAdvancedButtonLabel);
-}
-
-void SRTPromptController::DialogShown() {}
-
-void SRTPromptController::Accept() {
- OnInteractionDone();
-}
-
-void SRTPromptController::Cancel() {
- OnInteractionDone();
-}
-
-void SRTPromptController::Close() {
- OnInteractionDone();
-}
-
-void SRTPromptController::AdvancedButtonClicked() {
- OnInteractionDone();
-}
-
-void SRTPromptController::OnInteractionDone() {
- delete this;
-}
-
-} // namespace safe_browsing
« no previous file with comments | « chrome/browser/safe_browsing/srt_prompt_controller.h ('k') | chrome/browser/ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698