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

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

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 years, 1 month 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/path_service.h"
7 #include "chrome/browser/chrome_notification_types.h" 6 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/profiles/avatar_menu.h" 7 #include "chrome/browser/profiles/avatar_menu.h"
9 #include "chrome/browser/profiles/profile_manager.h" 8 #include "chrome/browser/profiles/profile_manager.h"
10 #include "chrome/browser/profiles/profile_window.h" 9 #include "chrome/browser/profiles/profile_window.h"
11 #include "chrome/browser/profiles/profiles_state.h" 10 #include "chrome/browser/profiles/profiles_state.h"
12 #include "chrome/browser/ui/browser.h" 11 #include "chrome/browser/ui/browser.h"
13 #include "chrome/browser/ui/browser_list.h" 12 #include "chrome/browser/ui/browser_list.h"
14 #include "chrome/browser/ui/user_manager.h" 13 #include "chrome/browser/ui/user_manager.h"
15 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
16 #include "chrome/test/base/in_process_browser_test.h" 15 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 false, ProfileMetrics::SWITCH_PROFILE_ICON); 137 false, ProfileMetrics::SWITCH_PROFILE_ICON);
139 EXPECT_EQ(2U, browser_list->size()); 138 EXPECT_EQ(2U, browser_list->size());
140 139
141 // Switch to the first profile without opening a new window. 140 // Switch to the first profile without opening a new window.
142 menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1), 141 menu->SwitchToProfile(cache.GetIndexOfProfileWithPath(path_profile1),
143 false, ProfileMetrics::SWITCH_PROFILE_ICON); 142 false, ProfileMetrics::SWITCH_PROFILE_ICON);
144 EXPECT_EQ(2U, browser_list->size()); 143 EXPECT_EQ(2U, browser_list->size());
145 EXPECT_EQ(path_profile1, browser_list->get(0)->profile()->GetPath()); 144 EXPECT_EQ(path_profile1, browser_list->get(0)->profile()->GetPath());
146 EXPECT_EQ(path_profile2, browser_list->get(1)->profile()->GetPath()); 145 EXPECT_EQ(path_profile2, browser_list->get(1)->profile()->GetPath());
147 } 146 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.cc ('k') | chrome/browser/profiles/profile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698