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/grit/generated_resources.h" |
10 #include "components/signin/core/common/profile_management_switches.h" | 11 #include "components/signin/core/common/profile_management_switches.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(); |
21 } | 21 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 } | 90 } |
91 | 91 |
92 void ProfileListDesktop::ActiveProfilePathChanged(base::FilePath& path) { | 92 void ProfileListDesktop::ActiveProfilePathChanged(base::FilePath& path) { |
93 active_profile_path_ = path; | 93 active_profile_path_ = path; |
94 } | 94 } |
95 | 95 |
96 void ProfileListDesktop::ClearMenu() { | 96 void ProfileListDesktop::ClearMenu() { |
97 STLDeleteElements(&items_); | 97 STLDeleteElements(&items_); |
98 omitted_item_count_ = 0; | 98 omitted_item_count_ = 0; |
99 } | 99 } |
OLD | NEW |