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

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

Issue 2860553002: Clean up most of the ChromeOS headers in non-ChromeOS build (Closed)
Patch Set: rebase Created 3 years, 7 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 (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> 5 #include <stddef.h>
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 19 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
20 #include "chrome/browser/browser_process.h" 20 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/chrome_notification_types.h" 21 #include "chrome/browser/chrome_notification_types.h"
22 #include "chrome/browser/chromeos/settings/cros_settings.h"
23 #include "chrome/browser/history/history_service_factory.h" 22 #include "chrome/browser/history/history_service_factory.h"
24 #include "chrome/browser/io_thread.h" 23 #include "chrome/browser/io_thread.h"
25 #include "chrome/browser/prefs/browser_prefs.h" 24 #include "chrome/browser/prefs/browser_prefs.h"
26 #include "chrome/browser/prefs/incognito_mode_prefs.h" 25 #include "chrome/browser/prefs/incognito_mode_prefs.h"
27 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/profiles/profile_avatar_icon_util.h" 27 #include "chrome/browser/profiles/profile_avatar_icon_util.h"
29 #include "chrome/browser/profiles/profile_info_cache.h" 28 #include "chrome/browser/profiles/profile_info_cache.h"
30 #include "chrome/browser/profiles/profile_manager.h" 29 #include "chrome/browser/profiles/profile_manager.h"
31 #include "chrome/browser/profiles/profiles_state.h" 30 #include "chrome/browser/profiles/profiles_state.h"
32 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 dest_path2.BaseName().MaybeAsASCII()); 1456 dest_path2.BaseName().MaybeAsASCII());
1458 profile_manager->ScheduleProfileForDeletion(dest_path2, 1457 profile_manager->ScheduleProfileForDeletion(dest_path2,
1459 ProfileManager::CreateCallback()); 1458 ProfileManager::CreateCallback());
1460 // Spin the message loop so that all the callbacks can finish running. 1459 // Spin the message loop so that all the callbacks can finish running.
1461 base::RunLoop().RunUntilIdle(); 1460 base::RunLoop().RunUntilIdle();
1462 1461
1463 EXPECT_EQ(dest_path3, profile_manager->GetLastUsedProfile()->GetPath()); 1462 EXPECT_EQ(dest_path3, profile_manager->GetLastUsedProfile()->GetPath());
1464 EXPECT_EQ(profile_name3, local_state->GetString(prefs::kProfileLastUsed)); 1463 EXPECT_EQ(profile_name3, local_state->GetString(prefs::kProfileLastUsed));
1465 } 1464 }
1466 #endif // !defined(OS_MACOSX) 1465 #endif // !defined(OS_MACOSX)
OLDNEW
« no previous file with comments | « chrome/browser/net/predictor_tab_helper.cc ('k') | chrome/browser/ssl/security_state_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698