| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/profile_helper.h" | 5 #include "chrome/browser/ui/webui/profile_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" |
| 8 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/lifetime/keep_alive_types.h" | 10 #include "chrome/browser/lifetime/keep_alive_types.h" |
| 10 #include "chrome/browser/lifetime/scoped_keep_alive.h" | 11 #include "chrome/browser/lifetime/scoped_keep_alive.h" |
| 11 #include "chrome/browser/profiles/profile_manager.h" | 12 #include "chrome/browser/profiles/profile_manager.h" |
| 12 #include "chrome/browser/profiles/profile_metrics.h" | 13 #include "chrome/browser/profiles/profile_metrics.h" |
| 13 #include "chrome/browser/profiles/profile_window.h" | 14 #include "chrome/browser/profiles/profile_window.h" |
| 14 #include "chrome/browser/profiles/profiles_state.h" | 15 #include "chrome/browser/profiles/profiles_state.h" |
| 15 #include "chrome/browser/ui/browser_finder.h" | 16 #include "chrome/browser/ui/browser_finder.h" |
| 16 #include "chrome/browser/ui/user_manager.h" | 17 #include "chrome/browser/ui/user_manager.h" |
| 17 #include "chrome/browser/ui/webui/signin/signin_utils.h" | 18 #include "chrome/browser/ui/webui/signin/signin_utils.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return; | 70 return; |
| 70 g_browser_process->profile_manager()->MaybeScheduleProfileForDeletion( | 71 g_browser_process->profile_manager()->MaybeScheduleProfileForDeletion( |
| 71 file_path, base::Bind(&DeleteProfileCallback, | 72 file_path, base::Bind(&DeleteProfileCallback, |
| 72 base::Passed(base::MakeUnique<ScopedKeepAlive>( | 73 base::Passed(base::MakeUnique<ScopedKeepAlive>( |
| 73 KeepAliveOrigin::PROFILE_HELPER, | 74 KeepAliveOrigin::PROFILE_HELPER, |
| 74 KeepAliveRestartOption::DISABLED))), | 75 KeepAliveRestartOption::DISABLED))), |
| 75 deletion_source); | 76 deletion_source); |
| 76 } | 77 } |
| 77 | 78 |
| 78 } // namespace webui | 79 } // namespace webui |
| OLD | NEW |