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

Side by Side Diff: chrome/test/base/testing_profile.h

Issue 996253002: [Fallback Icons] Refactor FallbackIconService to be a BrowserContext-level singleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and merge. Created 5 years, 8 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 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_ 5 #ifndef CHROME_TEST_BASE_TESTING_PROFILE_H_
6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_ 6 #define CHROME_TEST_BASE_TESTING_PROFILE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility>
10 #include <vector>
Jay Civelli 2015/03/26 05:14:56 Do you need these includes?
huangs 2015/03/26 18:26:06 I don't, but these were suggested by "git cl lint"
9 11
10 #include "base/files/scoped_temp_dir.h" 12 #include "base/files/scoped_temp_dir.h"
11 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
14 #include "components/domain_reliability/clear_mode.h" 16 #include "components/domain_reliability/clear_mode.h"
15 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 17 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
16 18
17 namespace content { 19 namespace content {
18 class MockResourceContext; 20 class MockResourceContext;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 #endif 159 #endif
158 scoped_ptr<PrefServiceSyncable> prefs, 160 scoped_ptr<PrefServiceSyncable> prefs,
159 TestingProfile* parent, 161 TestingProfile* parent,
160 bool guest_session, 162 bool guest_session,
161 const std::string& supervised_user_id, 163 const std::string& supervised_user_id,
162 scoped_ptr<policy::PolicyService> policy_service, 164 scoped_ptr<policy::PolicyService> policy_service,
163 const TestingFactories& factories); 165 const TestingFactories& factories);
164 166
165 ~TestingProfile() override; 167 ~TestingProfile() override;
166 168
169 // Creates the fallback icon service. Consequent calls would recreate the
170 // service.
Jay Civelli 2015/03/26 05:14:56 I am not sure I understand the "Consequent calls w
huangs 2015/03/26 18:26:06 The comment was copied from the line 173. By "Loo
171 void CreateFallbackIconService();
172
167 // Creates the favicon service. Consequent calls would recreate the service. 173 // Creates the favicon service. Consequent calls would recreate the service.
168 void CreateFaviconService(); 174 void CreateFaviconService();
169 175
170 // Creates the history service. If |delete_file| is true, the history file is 176 // Creates the history service. If |delete_file| is true, the history file is
171 // deleted first, then the HistoryService is created. As TestingProfile 177 // deleted first, then the HistoryService is created. As TestingProfile
172 // deletes the directory containing the files used by HistoryService, this 178 // deletes the directory containing the files used by HistoryService, this
173 // only matters if you're recreating the HistoryService. If |no_db| is true, 179 // only matters if you're recreating the HistoryService. If |no_db| is true,
174 // the history backend will fail to initialize its database; this is useful 180 // the history backend will fail to initialize its database; this is useful
175 // for testing error conditions. Returns true on success. 181 // for testing error conditions. Returns true on success.
176 bool CreateHistoryService(bool delete_file, bool no_db) WARN_UNUSED_RESULT; 182 bool CreateHistoryService(bool delete_file, bool no_db) WARN_UNUSED_RESULT;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 412
407 // Weak pointer to a delegate for indicating that a profile was created. 413 // Weak pointer to a delegate for indicating that a profile was created.
408 Delegate* delegate_; 414 Delegate* delegate_;
409 415
410 std::string profile_name_; 416 std::string profile_name_;
411 417
412 scoped_ptr<policy::PolicyService> policy_service_; 418 scoped_ptr<policy::PolicyService> policy_service_;
413 }; 419 };
414 420
415 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 421 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698