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

Side by Side Diff: chrome/browser/component_updater/sw_reporter_installer_win.cc

Issue 2819633003: Cleanup Tool WebUI: Add functionality to the Cleanup button (Closed)
Patch Set: Fix typdef {[ -> {{ Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698