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

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

Issue 8333021: Fix a crash in PageActionImageView when extensions are reloaded due to incognito settings changing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 // Creates a TemplateURLService. If not invoked the TemplateURLService is 125 // Creates a TemplateURLService. If not invoked the TemplateURLService is
126 // NULL. Creates a TemplateURLFetcher. If not invoked, the 126 // NULL. Creates a TemplateURLFetcher. If not invoked, the
127 // TemplateURLFetcher is NULL. 127 // TemplateURLFetcher is NULL.
128 void CreateTemplateURLFetcher(); 128 void CreateTemplateURLFetcher();
129 129
130 // Creates a TemplateURLService. If not invoked, the TemplateURLService is 130 // Creates a TemplateURLService. If not invoked, the TemplateURLService is
131 // NULL. 131 // NULL.
132 void CreateTemplateURLService(); 132 void CreateTemplateURLService();
133 133
134 // Creates an ExtensionProcessManager. If not invoked, the
135 // ExtensionProcessManager is NULL.
136 void CreateExtensionProcessManager();
137
134 // Creates an ExtensionService initialized with the testing profile and 138 // Creates an ExtensionService initialized with the testing profile and
135 // returns it. The profile keeps its own copy of a scoped_refptr to the 139 // returns it. The profile keeps its own copy of a scoped_refptr to the
136 // ExtensionService to make sure that is still alive to be notified when the 140 // ExtensionService to make sure that is still alive to be notified when the
137 // profile is destroyed. 141 // profile is destroyed.
138 ExtensionService* CreateExtensionService(const CommandLine* command_line, 142 ExtensionService* CreateExtensionService(const CommandLine* command_line,
139 const FilePath& install_directory, 143 const FilePath& install_directory,
140 bool autoupdate_enabled); 144 bool autoupdate_enabled);
141 145
142 TestingPrefService* GetTestingPrefService(); 146 TestingPrefService* GetTestingPrefService();
143 147
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 374
371 FilePath last_selected_directory_; 375 FilePath last_selected_directory_;
372 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 376 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
373 377
374 // The Extension Preferences. Only created if CreateExtensionService is 378 // The Extension Preferences. Only created if CreateExtensionService is
375 // invoked. 379 // invoked.
376 scoped_ptr<ExtensionPrefs> extension_prefs_; 380 scoped_ptr<ExtensionPrefs> extension_prefs_;
377 381
378 scoped_ptr<ExtensionService> extension_service_; 382 scoped_ptr<ExtensionService> extension_service_;
379 383
384 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
385
380 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 386 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
381 387
382 scoped_refptr<ExtensionSpecialStoragePolicy> 388 scoped_refptr<ExtensionSpecialStoragePolicy>
383 extension_special_storage_policy_; 389 extension_special_storage_policy_;
384 390
385 // The proxy prefs tracker. 391 // The proxy prefs tracker.
386 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 392 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
387 393
388 // We use a temporary directory to store testing profile data. In a multi- 394 // We use a temporary directory to store testing profile data. In a multi-
389 // profile environment, this is invalid and the directory is managed by the 395 // profile environment, this is invalid and the directory is managed by the
(...skipping 10 matching lines...) Expand all
400 // testing. 406 // testing.
401 ProfileDependencyManager* profile_dependency_manager_; 407 ProfileDependencyManager* profile_dependency_manager_;
402 408
403 scoped_refptr<ChromeAppCacheService> appcache_service_; 409 scoped_refptr<ChromeAppCacheService> appcache_service_;
404 410
405 // The QuotaManager, only available if set explicitly via SetQuotaManager. 411 // The QuotaManager, only available if set explicitly via SetQuotaManager.
406 scoped_refptr<quota::QuotaManager> quota_manager_; 412 scoped_refptr<quota::QuotaManager> quota_manager_;
407 }; 413 };
408 414
409 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_ 415 #endif // CHROME_TEST_BASE_TESTING_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/page_action_image_view.cc ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698