OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/views/profiles/profile_chooser_view.h" | 5 #include "chrome/browser/ui/views/profiles/profile_chooser_view.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" |
8 #include "base/path_service.h" | 11 #include "base/path_service.h" |
9 #include "base/prefs/pref_service.h" | 12 #include "base/prefs/pref_service.h" |
10 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
11 #include "base/test/histogram_tester.h" | 14 #include "base/test/histogram_tester.h" |
12 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 16 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/extensions/extension_browsertest.h" | 17 #include "chrome/browser/extensions/extension_browsertest.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 18 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/browser/profiles/profile_metrics.h" | 19 #include "chrome/browser/profiles/profile_metrics.h" |
17 #include "chrome/browser/profiles/profiles_state.h" | 20 #include "chrome/browser/profiles/profiles_state.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 EXPECT_EQ(1U, BrowserList::GetInstance(chrome::GetActiveDesktop())->size()); | 318 EXPECT_EQ(1U, BrowserList::GetInstance(chrome::GetActiveDesktop())->size()); |
316 | 319 |
317 WaitForUserManager(); | 320 WaitForUserManager(); |
318 // Assert that the first profile's extensions are not blocked. | 321 // Assert that the first profile's extensions are not blocked. |
319 ASSERT_EQ(total_enabled_extensions, registry->enabled_extensions().size()); | 322 ASSERT_EQ(total_enabled_extensions, registry->enabled_extensions().size()); |
320 ASSERT_EQ(0U, registry->blocked_extensions().size()); | 323 ASSERT_EQ(0U, registry->blocked_extensions().size()); |
321 | 324 |
322 // We need to hide the User Manager or else the process can't die. | 325 // We need to hide the User Manager or else the process can't die. |
323 UserManager::Hide(); | 326 UserManager::Hide(); |
324 } | 327 } |
OLD | NEW |