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

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

Issue 8659002: Adding the --load-component-extension flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding comment to ScopedAllowIO.wq 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 875b84224c7a54b8efdf8ebaa0fb208712903e94..2434dafb6f784785bc16b14696a9bae41306ebb8 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -349,7 +349,8 @@ void ExtensionPrefs::MakePathsAbsolute(DictionaryValue* dict) {
if (!extension_dict->GetString(kPrefPath, &path_string))
continue;
- DCHECK(!FilePath(path_string).IsAbsolute());
+ DCHECK(location_value == Extension::COMPONENT ||
+ !FilePath(path_string).IsAbsolute());
extension_dict->SetString(
kPrefPath, install_directory_.Append(path_string).value());
}
« no previous file with comments | « chrome/browser/extensions/extension_file_browser_private_api.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698