OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/profiles/profile_info_cache.h" | 8 #include "chrome/browser/profiles/profile_info_cache.h" |
9 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 9 #include "chrome/browser/profiles/profile_info_cache_observer.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
11 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
12 #include "chrome/browser/ui/browser_list.h" | 12 #include "chrome/browser/ui/browser_list.h" |
13 #include "chrome/browser/ui/host_desktop.h" | 13 #include "chrome/browser/ui/host_desktop.h" |
14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
15 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
16 #include "chrome/test/base/testing_browser_process.h" | 16 #include "chrome/test/base/testing_browser_process.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 EXPECT_EQ(profile_manager->GetNumberOfProfiles(), 2U); | 182 EXPECT_EQ(profile_manager->GetNumberOfProfiles(), 2U); |
183 EXPECT_EQ(chrome::GetTotalBrowserCount(), 2U); | 183 EXPECT_EQ(chrome::GetTotalBrowserCount(), 2U); |
184 | 184 |
185 // Now close all browser windows. | 185 // Now close all browser windows. |
186 std::vector<Profile*> profiles = profile_manager->GetLoadedProfiles(); | 186 std::vector<Profile*> profiles = profile_manager->GetLoadedProfiles(); |
187 for (std::vector<Profile*>::const_iterator it = profiles.begin(); | 187 for (std::vector<Profile*>::const_iterator it = profiles.begin(); |
188 it != profiles.end(); ++it) { | 188 it != profiles.end(); ++it) { |
189 BrowserList::CloseAllBrowsersWithProfile(*it); | 189 BrowserList::CloseAllBrowsersWithProfile(*it); |
190 } | 190 } |
191 } | 191 } |
OLD | NEW |