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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_service.h
===================================================================
--- chrome/browser/extensions/extension_service.h (revision 116798)
+++ chrome/browser/extensions/extension_service.h (working copy)
@@ -510,13 +510,12 @@
const FilePath& path,
Extension::Location location,
int creation_flags,
- bool mark_acknowledged)
- OVERRIDE;
+ bool mark_acknowledged) OVERRIDE;
- virtual void OnExternalExtensionUpdateUrlFound(const std::string& id,
- const GURL& update_url,
- Extension::Location location)
- OVERRIDE;
+ virtual void OnExternalExtensionUpdateUrlFound(
+ const std::string& id,
+ const GURL& update_url,
+ Extension::Location location) OVERRIDE;
virtual void OnExternalProviderReady(
const ExternalExtensionProviderInterface* provider) OVERRIDE;
@@ -582,6 +581,11 @@
virtual void OnImageLoaded(SkBitmap* image,
const ExtensionResource& resource,
int index) OVERRIDE;
+
+ void set_use_utility_process_for_testing(bool value) {
+ use_utility_process_ = value;
+ }
+
private:
// Bundle of type (app or extension)-specific sync stuff.
struct SyncBundle {
@@ -843,6 +847,9 @@
ShellIntegration::ShortcutInfo shortcut_info_;
ImageLoadingTracker tracker_;
+ // True if the utility process is used, false otherwise (i.e. for tests).
+ bool use_utility_process_;
+
FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
InstallAppsWithUnlimtedStorage);
FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,

Powered by Google App Engine
This is Rietveld 408576698