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

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

Issue 10387167: Revert 137540 - Disable off-store extension installs by default. Also get rid of ExtensionService::… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 137574)
+++ chrome/browser/extensions/extension_service.h (working copy)
@@ -168,6 +168,12 @@
// settings are stored.
static const char* kSyncExtensionSettingsDirectoryName;
+ // Determine if a given extension download should be treated as if it came
+ // from the gallery. Note that this is requires *both* that the download_url
+ // match and that the download was referred from a gallery page.
+ bool IsDownloadFromGallery(const GURL& download_url,
+ const GURL& referrer_url);
+
// Returns the Extension of hosted or packaged apps, NULL otherwise.
const Extension* GetInstalledApp(const GURL& url);
@@ -367,6 +373,9 @@
// an existing extension.
virtual void SyncExtensionChangeIfNeeded(const Extension& extension) OVERRIDE;
+ // The App that represents the web store.
+ const Extension* GetWebStoreApp();
+
// Returns true if |url| should get extension api bindings and be permitted
// to make api calls. Note that this is independent of what extension
// permissions the given extension has been granted.
« no previous file with comments | « chrome/browser/extensions/crx_installer_browsertest.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698