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

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

Issue 8869005: Revert EnableClose() removal and related crash fixes. I don't understand the crashes here, and th... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
OLDNEW
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 #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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Creates a TemplateURLService. If not invoked the TemplateURLService is 126 // Creates a TemplateURLService. If not invoked the TemplateURLService is
127 // NULL. Creates a TemplateURLFetcher. If not invoked, the 127 // NULL. Creates a TemplateURLFetcher. If not invoked, the
128 // TemplateURLFetcher is NULL. 128 // TemplateURLFetcher is NULL.
129 void CreateTemplateURLFetcher(); 129 void CreateTemplateURLFetcher();
130 130
131 // Creates a TemplateURLService. If not invoked, the TemplateURLService is 131 // Creates a TemplateURLService. If not invoked, the TemplateURLService is
132 // NULL. 132 // NULL.
133 void CreateTemplateURLService(); 133 void CreateTemplateURLService();
134 134
135 // Blocks until TempalteURLService finishes loading.
136 void BlockUntilTemplateURLServiceLoaded();
137
138 // Creates an ExtensionProcessManager. If not invoked, the 135 // Creates an ExtensionProcessManager. If not invoked, the
139 // ExtensionProcessManager is NULL. 136 // ExtensionProcessManager is NULL.
140 void CreateExtensionProcessManager(); 137 void CreateExtensionProcessManager();
141 138
142 // Creates an ExtensionService initialized with the testing profile and 139 // Creates an ExtensionService initialized with the testing profile and
143 // returns it. The profile keeps its own copy of a scoped_refptr to the 140 // returns it. The profile keeps its own copy of a scoped_refptr to the
144 // ExtensionService to make sure that is still alive to be notified when the 141 // ExtensionService to make sure that is still alive to be notified when the
145 // profile is destroyed. 142 // profile is destroyed.
146 ExtensionService* CreateExtensionService(const CommandLine* command_line, 143 ExtensionService* CreateExtensionService(const CommandLine* command_line,
147 const FilePath& install_directory, 144 const FilePath& install_directory,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 scoped_refptr<ChromeAppCacheService> appcache_service_; 420 scoped_refptr<ChromeAppCacheService> appcache_service_;
424 421
425 // The QuotaManager, only available if set explicitly via SetQuotaManager. 422 // The QuotaManager, only available if set explicitly via SetQuotaManager.
426 scoped_refptr<quota::QuotaManager> quota_manager_; 423 scoped_refptr<quota::QuotaManager> quota_manager_;
427 424
428 // Weak pointer to a delegate for indicating that a profile was created. 425 // Weak pointer to a delegate for indicating that a profile was created.
429 Delegate* delegate_; 426 Delegate* delegate_;
430 }; 427 };
431 428
432 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 429 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698