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

Unified Diff: chrome/browser/component_updater/sw_reporter_installer_win.cc

Issue 2822433003: Cleanup Tool WebUI: Add functionality to the Scan button (Closed)
Patch Set: Add WeakPtrFactory 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/component_updater/sw_reporter_installer_win.cc
diff --git a/chrome/browser/component_updater/sw_reporter_installer_win.cc b/chrome/browser/component_updater/sw_reporter_installer_win.cc
index bca424f8beed4efd637d5a9231183f63b5681327..82287ee1a28c779ff176746aa80999ba7d05f0ad 100644
--- a/chrome/browser/component_updater/sw_reporter_installer_win.cc
+++ b/chrome/browser/component_updater/sw_reporter_installer_win.cc
@@ -501,4 +501,13 @@ void RegisterProfilePrefsForSwReporter(
registry->RegisterStringPref(prefs::kSwReporterPromptSeed, "");
}
+void RegisterUserInitiatedSwReporterScan(base::Closure callback) {
+ // Fetch the latest version of the Cleanup component and run it,
+ // bypassing the usual scheduling logic. Once the scan is done, report
+ // whether the scan was successful and the names of the Unwanted Software that
+ // can be removed by the Cleanup tool.
+ // TODO(proberge): Implement me.
+ callback.Run();
+}
+
} // namespace component_updater

Powered by Google App Engine
This is Rietveld 408576698