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

Unified Diff: extensions/common/extension.cc

Issue 95133002: Add an extension bubble explaining which extensions are in dev mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync'ed Created 7 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
« extensions/common/extension.h ('K') | « extensions/common/extension.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension.cc
diff --git a/extensions/common/extension.cc b/extensions/common/extension.cc
index 10e065b97f791fa7c270c748dd59f85714407db7..db9da4c4939413669324146919af14e6d16ff1d4 100644
--- a/extensions/common/extension.cc
+++ b/extensions/common/extension.cc
@@ -386,6 +386,11 @@ bool Extension::ShouldNotBeVisible() const {
return false;
}
+bool Extension::IsDevModeExtension() const {
+ return location() == Manifest::UNPACKED ||
+ location() == Manifest::COMMAND_LINE;
+}
+
Extension::ManifestData* Extension::GetManifestData(const std::string& key)
const {
DCHECK(finished_parsing_manifest_ || thread_checker_.CalledOnValidThread());
« extensions/common/extension.h ('K') | « extensions/common/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698