| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/component_updater/sw_reporter_installer_win.h" | 5 #include "chrome/browser/component_updater/sw_reporter_installer_win.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeSentReport, 0); | 491 registry->RegisterInt64Pref(prefs::kSwReporterLastTimeSentReport, 0); |
| 492 } | 492 } |
| 493 | 493 |
| 494 void RegisterProfilePrefsForSwReporter( | 494 void RegisterProfilePrefsForSwReporter( |
| 495 user_prefs::PrefRegistrySyncable* registry) { | 495 user_prefs::PrefRegistrySyncable* registry) { |
| 496 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); | 496 registry->RegisterStringPref(prefs::kSwReporterPromptVersion, ""); |
| 497 | 497 |
| 498 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); | 498 registry->RegisterStringPref(prefs::kSwReporterPromptSeed, ""); |
| 499 } | 499 } |
| 500 | 500 |
| 501 void RegisterUserInitiatedSwReporterScan(base::Closure callback) { | |
| 502 // Fetch the latest version of the Cleanup component and run it, | |
| 503 // bypassing the usual scheduling logic. Once the scan is done, report | |
| 504 // whether the scan was successful and the names of the Unwanted Software that | |
| 505 // can be removed by the Cleanup tool. | |
| 506 // TODO(proberge): Implement me. | |
| 507 callback.Run(); | |
| 508 } | |
| 509 | |
| 510 } // namespace component_updater | 501 } // namespace component_updater |
| OLD | NEW |