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

Unified Diff: chrome/browser/safe_browsing/srt_global_error_win.h

Issue 2846333003: Chrome cleaner: move Chrome Cleaner files to their own directory (Closed)
Patch Set: 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
Index: chrome/browser/safe_browsing/srt_global_error_win.h
diff --git a/chrome/browser/safe_browsing/srt_global_error_win.h b/chrome/browser/safe_browsing/srt_global_error_win.h
deleted file mode 100644
index 5505998db4c3051c0afd441e4de3db16c33cf2b2..0000000000000000000000000000000000000000
--- a/chrome/browser/safe_browsing/srt_global_error_win.h
+++ /dev/null
@@ -1,86 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_
-#define CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_
-
-#include <vector>
-
-#include "base/files/file_path.h"
-#include "base/macros.h"
-#include "chrome/browser/safe_browsing/srt_field_trial_win.h"
-#include "chrome/browser/ui/global_error/global_error.h"
-
-class GlobalErrorService;
-
-namespace safe_browsing {
-
-// Encapsulates UI-related functionality for the software removal tool (SRT)
-// prompt. The UI consists of two parts: (1.) the profile reset (pop-up) bubble,
-// and (2.) a menu item in the wrench menu (provided by being a GlobalError).
-class SRTGlobalError : public GlobalErrorWithStandardBubble {
- public:
- // Creates the new SRTGlobalError to be associated to the given
- // |global_error_service|. |download_path| specifies the path the SRT has
- // already been downloaded to. If for some reason the SRT cannot be found at
- // this path, if the path is empty or if the SRT cannot be launched, the
- // bubble will fall back to opening the SRT download page if the user requests
- // cleanup.
- SRTGlobalError(GlobalErrorService* global_error_service,
- const base::FilePath& downloaded_path);
- ~SRTGlobalError() override;
-
- // GlobalError:
- bool HasMenuItem() override;
- int MenuItemCommandID() override;
- base::string16 MenuItemLabel() override;
- void ExecuteMenuItem(Browser* browser) override;
- void ShowBubbleView(Browser* browser) override;
-
- // WidgetDelegateView overrides:
- bool ShouldShowCloseButton() const override;
-
- // GlobalErrorWithStandardBubble:
- base::string16 GetBubbleViewTitle() override;
- std::vector<base::string16> GetBubbleViewMessages() override;
- base::string16 GetBubbleViewAcceptButtonLabel() override;
- base::string16 GetBubbleViewCancelButtonLabel() override;
- void OnBubbleViewDidClose(Browser* browser) override;
- void BubbleViewAcceptButtonPressed(Browser* browser) override;
- bool ShouldAddElevationIconToAcceptButton() override;
- void BubbleViewCancelButtonPressed(Browser* browser) override;
- bool ShouldCloseOnDeactivate() const override;
-
- private:
- // Executes the SRT if the executable is present.
- void MaybeExecuteSRT();
-
- // Falls back to a navigation to the download page when we failed to
- // download and execute the SRT.
- void FallbackToDownloadPage();
-
- // Called when user interaction has started.
- void OnUserinteractionStarted(SRTPromptHistogramValue histogram_value);
-
- // Called when user interaction is done.
- void OnUserinteractionDone();
-
- // Used to dismiss the GlobalError, then set to NULL.
- GlobalErrorService* global_error_service_;
-
- // The path to the downloaded executable.
- base::FilePath downloaded_path_;
-
- // Identifies whether the bubble was shown from the menu.
- bool bubble_shown_from_menu_ = false;
-
- // Identifies whether the user interacted with the bubble buttons or not.
- bool interacted_ = false;
-
- DISALLOW_COPY_AND_ASSIGN(SRTGlobalError);
-};
-
-} // namespace safe_browsing
-
-#endif // CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_
« no previous file with comments | « chrome/browser/safe_browsing/srt_field_trial_win.cc ('k') | chrome/browser/safe_browsing/srt_global_error_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698