Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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/ui/webui/settings/chrome_cleanup_handler.h" | 5 #include "chrome/browser/ui/webui/settings/chrome_cleanup_handler.h" |
| 6 | 6 |
| 7 #include <string> | |
| 8 | |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| 9 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
| 10 #include "base/values.h" | 12 #include "base/values.h" |
| 11 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.h" | 13 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.h" |
| 12 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
| 13 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 14 #include "content/public/browser/web_ui.h" | 16 #include "content/public/browser/web_ui.h" |
| 15 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
| 16 | 18 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 | 141 |
| 140 CallJavascriptFunction("cr.webUIListenerCallback", | 142 CallJavascriptFunction("cr.webUIListenerCallback", |
| 141 base::Value("chrome-cleanup-on-dismiss")); | 143 base::Value("chrome-cleanup-on-dismiss")); |
| 142 // TODO(proberge): Show a prompt to reboot the system. | 144 // TODO(proberge): Show a prompt to reboot the system. |
| 143 } | 145 } |
| 144 | 146 |
| 145 void ChromeCleanupHandler::HandleStartCleanup(const base::ListValue* args) { | 147 void ChromeCleanupHandler::HandleStartCleanup(const base::ListValue* args) { |
| 146 DCHECK_EQ(0U, args->GetSize()); | 148 DCHECK_EQ(0U, args->GetSize()); |
| 147 | 149 |
| 148 controller_->ReplyWithUserResponse( | 150 controller_->ReplyWithUserResponse( |
| 149 profile_, ChromeCleanerController::UserResponse::kAccepted); | 151 profile_, ChromeCleanerController::UserResponse::kAcceptedWithoutLogs); |
|
robertshield
2017/06/29 13:47:21
Shouldn't this take the value of the toggle in the
robertshield
2017/06/29 13:56:28
Nm, just saw your comment in the mail. Maybe a TOD
proberge
2017/06/29 13:56:29
Yes. @alito please add a TODO under my name above
alito
2017/06/29 17:14:27
Added a TODO assigned to proberge@.
alito
2017/06/29 17:14:27
Done.
| |
| 150 } | 152 } |
| 151 | 153 |
| 152 } // namespace settings | 154 } // namespace settings |
| OLD | NEW |