| 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 <stddef.h> | 
 |    6  | 
|    5 #include "base/bind.h" |    7 #include "base/bind.h" | 
|    6 #include "base/command_line.h" |    8 #include "base/command_line.h" | 
 |    9 #include "base/macros.h" | 
|    7 #include "base/prefs/pref_service.h" |   10 #include "base/prefs/pref_service.h" | 
|    8 #include "base/strings/utf_string_conversions.h" |   11 #include "base/strings/utf_string_conversions.h" | 
 |   12 #include "build/build_config.h" | 
|    9 #include "chrome/browser/password_manager/password_store_factory.h" |   13 #include "chrome/browser/password_manager/password_store_factory.h" | 
|   10 #include "chrome/browser/profiles/profile_info_cache.h" |   14 #include "chrome/browser/profiles/profile_info_cache.h" | 
|   11 #include "chrome/browser/profiles/profile_info_cache_observer.h" |   15 #include "chrome/browser/profiles/profile_info_cache_observer.h" | 
|   12 #include "chrome/browser/profiles/profile_manager.h" |   16 #include "chrome/browser/profiles/profile_manager.h" | 
|   13 #include "chrome/browser/profiles/profile_window.h" |   17 #include "chrome/browser/profiles/profile_window.h" | 
|   14 #include "chrome/browser/profiles/profiles_state.h" |   18 #include "chrome/browser/profiles/profiles_state.h" | 
|   15 #include "chrome/browser/ui/browser_finder.h" |   19 #include "chrome/browser/ui/browser_finder.h" | 
|   16 #include "chrome/browser/ui/browser_list.h" |   20 #include "chrome/browser/ui/browser_list.h" | 
|   17 #include "chrome/browser/ui/browser_window.h" |   21 #include "chrome/browser/ui/browser_window.h" | 
|   18 #include "chrome/browser/ui/host_desktop.h" |   22 #include "chrome/browser/ui/host_desktop.h" | 
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  455   profile_manager->ScheduleProfileForDeletion( |  459   profile_manager->ScheduleProfileForDeletion( | 
|  456       profile->GetPath(), base::Bind(&OnUnblockOnProfileCreation, &run_loop)); |  460       profile->GetPath(), base::Bind(&OnUnblockOnProfileCreation, &run_loop)); | 
|  457   run_loop.Run(); |  461   run_loop.Run(); | 
|  458  |  462  | 
|  459   PasswordStoreConsumerVerifier verify_delete; |  463   PasswordStoreConsumerVerifier verify_delete; | 
|  460   password_store->GetAutofillableLogins(&verify_delete); |  464   password_store->GetAutofillableLogins(&verify_delete); | 
|  461   verify_delete.Wait(); |  465   verify_delete.Wait(); | 
|  462   EXPECT_EQ(0u, verify_delete.GetPasswords().size()); |  466   EXPECT_EQ(0u, verify_delete.GetPasswords().size()); | 
|  463 } |  467 } | 
|  464 #endif  // !defined(OS_WIN) && !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |  468 #endif  // !defined(OS_WIN) && !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 
| OLD | NEW |