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

Side by Side Diff: chrome/browser/profiles/profile_list_desktop.cc

Issue 235813002: Add profile-switches to signin-internals; move switches to component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698