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

Side by Side Diff: chrome/browser/ui/webui/profile_helper.cc

Issue 2899083003: Delete unused tutorial code from profile switcher/user manager. (Closed)
Patch Set: fix merge Created 3 years, 6 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 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 "base/memory/ptr_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/lifetime/keep_alive_types.h" 11 #include "chrome/browser/lifetime/keep_alive_types.h"
12 #include "chrome/browser/lifetime/scoped_keep_alive.h" 12 #include "chrome/browser/lifetime/scoped_keep_alive.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/profiles/profile_metrics.h" 14 #include "chrome/browser/profiles/profile_metrics.h"
15 #include "chrome/browser/profiles/profile_window.h" 15 #include "chrome/browser/profiles/profile_window.h"
16 #include "chrome/browser/profiles/profiles_state.h" 16 #include "chrome/browser/profiles/profiles_state.h"
17 #include "chrome/browser/ui/browser_finder.h" 17 #include "chrome/browser/ui/browser_finder.h"
18 #include "chrome/browser/ui/user_manager.h" 18 #include "chrome/browser/ui/user_manager.h"
19 #include "chrome/browser/ui/webui/signin/signin_utils.h" 19 #include "chrome/browser/ui/webui/signin/signin_utils.h"
20 #include "content/public/browser/web_contents.h" 20 #include "content/public/browser/web_contents.h"
21 #include "content/public/browser/web_ui.h" 21 #include "content/public/browser/web_ui.h"
22 #include "extensions/browser/app_window/app_window.h" 22 #include "extensions/browser/app_window/app_window.h"
23 #include "extensions/browser/app_window/app_window_registry.h" 23 #include "extensions/browser/app_window/app_window_registry.h"
24 24
25 namespace webui { 25 namespace webui {
26 namespace { 26 namespace {
27 27
28 void ShowUserManager(const ProfileManager::CreateCallback& callback) { 28 void ShowUserManager(const ProfileManager::CreateCallback& callback) {
29 if (!UserManager::IsShowing()) { 29 if (!UserManager::IsShowing()) {
30 UserManager::Show(base::FilePath(), profiles::USER_MANAGER_NO_TUTORIAL, 30 UserManager::Show(base::FilePath(),
31 profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION); 31 profiles::USER_MANAGER_SELECT_PROFILE_NO_ACTION);
32 } 32 }
33 33
34 g_browser_process->profile_manager()->CreateProfileAsync( 34 g_browser_process->profile_manager()->CreateProfileAsync(
35 ProfileManager::GetSystemProfilePath(), callback, base::string16(), 35 ProfileManager::GetSystemProfilePath(), callback, base::string16(),
36 std::string(), std::string()); 36 std::string(), std::string());
37 } 37 }
38 38
39 std::string GetProfileUserName(Profile* profile) { 39 std::string GetProfileUserName(Profile* profile) {
40 ProfileAttributesEntry* entry; 40 ProfileAttributesEntry* entry;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 return; 94 return;
95 g_browser_process->profile_manager()->MaybeScheduleProfileForDeletion( 95 g_browser_process->profile_manager()->MaybeScheduleProfileForDeletion(
96 file_path, base::Bind(&DeleteProfileCallback, 96 file_path, base::Bind(&DeleteProfileCallback,
97 base::Passed(base::MakeUnique<ScopedKeepAlive>( 97 base::Passed(base::MakeUnique<ScopedKeepAlive>(
98 KeepAliveOrigin::PROFILE_HELPER, 98 KeepAliveOrigin::PROFILE_HELPER,
99 KeepAliveRestartOption::DISABLED))), 99 KeepAliveRestartOption::DISABLED))),
100 deletion_source); 100 deletion_source);
101 } 101 }
102 102
103 } // namespace webui 103 } // namespace webui
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/profiles/user_manager_view.cc ('k') | chrome/browser/ui/webui/settings/people_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698