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

Unified Diff: chrome/browser/extensions/external_extension_loader.cc

Issue 6293006: Allow relative paths to external extension files for some providers, error out for others. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Tested registry install on windows. Created 9 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/external_extension_loader.cc
diff --git a/chrome/browser/extensions/external_extension_loader.cc b/chrome/browser/extensions/external_extension_loader.cc
index 79fc78795315f82afd51a7b9e498420d86896cb6..674cf7d9256bbd7920687042e372f8cec7e53cfc 100644
--- a/chrome/browser/extensions/external_extension_loader.cc
+++ b/chrome/browser/extensions/external_extension_loader.cc
@@ -15,6 +15,13 @@ void ExternalExtensionLoader::Init(
owner_ = owner;
}
+const FilePath ExternalExtensionLoader::GetBaseCrxFilePath() {
+ CHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
gfeher 2011/01/14 21:23:17 My understanding is that this will be called on th
Sam Kerner (Chrome) 2011/01/17 20:21:35 Yes, my mistake.
+
+ // By default, relative paths are not allowed.
+ return FilePath();
+}
+
void ExternalExtensionLoader::OwnerShutdown() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
owner_ = NULL;
« no previous file with comments | « chrome/browser/extensions/external_extension_loader.h ('k') | chrome/browser/extensions/external_extension_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698