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

Side by Side Diff: chrome/test/base/testing_profile_manager.cc

Issue 657643003: Cleanup: Remove unneeded extensions #includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 "chrome/test/base/testing_profile_manager.h" 5 #include "chrome/test/base/testing_profile_manager.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/extensions/extension_special_storage_policy.h"
10 #include "chrome/browser/prefs/pref_service_syncable.h" 9 #include "chrome/browser/prefs/pref_service_syncable.h"
11 #include "chrome/browser/profiles/profile_info_cache.h" 10 #include "chrome/browser/profiles/profile_info_cache.h"
12 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
13 #include "chrome/common/chrome_constants.h" 12 #include "chrome/common/chrome_constants.h"
14 #include "chrome/test/base/testing_browser_process.h" 13 #include "chrome/test/base/testing_browser_process.h"
15 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
16 15
17 #if defined(OS_CHROMEOS) 16 #if defined(OS_CHROMEOS)
18 #include "chrome/browser/chromeos/profiles/profile_helper.h" 17 #include "chrome/browser/chromeos/profiles/profile_helper.h"
19 #endif 18 #endif
20 19
21 const std::string kGuestProfileName = "Guest"; 20 const char kGuestProfileName[] = "Guest";
22 21
23 namespace testing { 22 namespace testing {
24 23
25 class ProfileManager : public ::ProfileManagerWithoutInit { 24 class ProfileManager : public ::ProfileManagerWithoutInit {
26 public: 25 public:
27 explicit ProfileManager(const base::FilePath& user_data_dir) 26 explicit ProfileManager(const base::FilePath& user_data_dir)
28 : ::ProfileManagerWithoutInit(user_data_dir) {} 27 : ::ProfileManagerWithoutInit(user_data_dir) {}
29 28
30 protected: 29 protected:
31 virtual Profile* CreateProfileHelper( 30 virtual Profile* CreateProfileHelper(
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 << "ProfileManager already exists"; 199 << "ProfileManager already exists";
201 200
202 // Set up the directory for profiles. 201 // Set up the directory for profiles.
203 ASSERT_TRUE(profiles_dir_.CreateUniqueTempDir()); 202 ASSERT_TRUE(profiles_dir_.CreateUniqueTempDir());
204 203
205 profile_manager_ = new testing::ProfileManager(profiles_dir_.path()); 204 profile_manager_ = new testing::ProfileManager(profiles_dir_.path());
206 browser_process_->SetProfileManager(profile_manager_); // Takes ownership. 205 browser_process_->SetProfileManager(profile_manager_); // Takes ownership.
207 206
208 called_set_up_ = true; 207 called_set_up_ = true;
209 } 208 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/tab_contents_synced_tab_delegate.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698