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

Unified Diff: chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h

Issue 2906103002: Post-cleanup settings reset. (Closed)
Patch Set: Nits Created 3 years, 6 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/chrome_cleaner/chrome_cleaner_controller_win.h
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h
index 0b75a2c36297b11052db2c66d6194881ae16e7d1..d88aec26fd72cdad60b52fab10d3053c39c93df0 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h
@@ -7,7 +7,9 @@
#include <memory>
#include <set>
+#include <vector>
+#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -17,6 +19,8 @@
#include "chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_win.h"
#include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
+class Profile;
+
namespace base {
template <typename T>
struct DefaultSingletonTraits;
@@ -41,6 +45,12 @@ class ChromeCleanerControllerDelegate {
virtual void FetchAndVerifyChromeCleaner(FetchedCallback fetched_callback);
virtual bool SafeBrowsingExtendedReportingScoutEnabled();
virtual bool IsMetricsAndCrashReportingEnabled();
+
+ // Auxiliary methods for tagging and resetting open profiles.
+ virtual void InvokeTagProfileForResetting(Profile* profile);
+ virtual void InvokeResetPostCleanupSettingsIfTagged(
+ std::vector<Profile*> profiles,
+ base::OnceClosure continuation);
};
// Controller class that keeps track of the execution of the Chrome Cleaner and
@@ -187,6 +197,7 @@ class ChromeCleanerController {
prompt_user_callback);
void OnConnectionClosed();
void OnCleanerProcessDone(ChromeCleanerRunner::ProcessStatus process_status);
+ void ChromeCleanerController::OnSettingsResetCompleted();
std::unique_ptr<ChromeCleanerControllerDelegate> real_delegate_;
// Pointer to either real_delegate_ or one set by tests.

Powered by Google App Engine
This is Rietveld 408576698