| OLD | NEW | 
|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> | 
| 6 | 6 | 
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" | 
| 8 #include "base/memory/scoped_temp_dir.h" |  | 
| 9 #include "base/message_loop.h" | 8 #include "base/message_loop.h" | 
| 10 #include "base/path_service.h" | 9 #include "base/path_service.h" | 
|  | 10 #include "base/scoped_temp_dir.h" | 
| 11 #include "base/system_monitor/system_monitor.h" | 11 #include "base/system_monitor/system_monitor.h" | 
| 12 #include "base/values.h" | 12 #include "base/values.h" | 
| 13 #include "chrome/browser/prefs/browser_prefs.h" | 13 #include "chrome/browser/prefs/browser_prefs.h" | 
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" | 
| 15 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" | 
| 16 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" | 
| 17 #include "chrome/common/chrome_paths.h" | 17 #include "chrome/common/chrome_paths.h" | 
| 18 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" | 
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" | 
| 20 #include "chrome/test/testing_browser_process_test.h" | 20 #include "chrome/test/testing_browser_process_test.h" | 
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 222       temp_dir_.path().Append(FILE_PATH_LITERAL("New Profile 2")); | 222       temp_dir_.path().Append(FILE_PATH_LITERAL("New Profile 2")); | 
| 223 | 223 | 
| 224   MockObserver mock_observer; | 224   MockObserver mock_observer; | 
| 225   EXPECT_CALL(mock_observer, OnProfileCreated(testing::NotNull())).Times(2); | 225   EXPECT_CALL(mock_observer, OnProfileCreated(testing::NotNull())).Times(2); | 
| 226 | 226 | 
| 227   profile_manager_->CreateProfileAsync(dest_path1, &mock_observer); | 227   profile_manager_->CreateProfileAsync(dest_path1, &mock_observer); | 
| 228   profile_manager_->CreateProfileAsync(dest_path2, &mock_observer); | 228   profile_manager_->CreateProfileAsync(dest_path2, &mock_observer); | 
| 229 | 229 | 
| 230   message_loop_.RunAllPending(); | 230   message_loop_.RunAllPending(); | 
| 231 } | 231 } | 
| OLD | NEW | 
|---|