OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/profiles/profile_list_desktop.h" | 5 #include "chrome/browser/profiles/profile_list_desktop.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 8 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
9 #include "chrome/browser/profiles/profile_info_cache.h" | 9 #include "chrome/browser/profiles/profile_info_cache.h" |
10 #include "chrome/common/profile_management_switches.h" | 10 #include "components/signin/core/common/profile_management_switches.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 | 13 |
14 ProfileListDesktop::ProfileListDesktop(ProfileInfoInterface* profile_cache) | 14 ProfileListDesktop::ProfileListDesktop(ProfileInfoInterface* profile_cache) |
15 : profile_info_(profile_cache), | 15 : profile_info_(profile_cache), |
16 omitted_item_count_(0) { | 16 omitted_item_count_(0) { |
17 } | 17 } |
18 | 18 |
19 ProfileListDesktop::~ProfileListDesktop() { | 19 ProfileListDesktop::~ProfileListDesktop() { |
20 ClearMenu(); | 20 ClearMenu(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 } | 98 } |
99 | 99 |
100 void ProfileListDesktop::ActiveProfilePathChanged(base::FilePath& path) { | 100 void ProfileListDesktop::ActiveProfilePathChanged(base::FilePath& path) { |
101 active_profile_path_ = path; | 101 active_profile_path_ = path; |
102 } | 102 } |
103 | 103 |
104 void ProfileListDesktop::ClearMenu() { | 104 void ProfileListDesktop::ClearMenu() { |
105 STLDeleteElements(&items_); | 105 STLDeleteElements(&items_); |
106 omitted_item_count_ = 0; | 106 omitted_item_count_ = 0; |
107 } | 107 } |
OLD | NEW |