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

Unified Diff: extensions/browser/extension_util.h

Issue 282103003: Moved IS_EPHEMERAL flag to extension prefs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up file header Created 6 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
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/browser/extension_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_util.h
diff --git a/extensions/browser/extension_util.h b/extensions/browser/extension_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..8fd456eca9f3873f86851fbbc7fe80e69969adc2
--- /dev/null
+++ b/extensions/browser/extension_util.h
@@ -0,0 +1,32 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
+#define EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
+
+#include <string>
+
+namespace content {
+class BrowserContext;
+}
+
+namespace extensions {
+namespace util {
+
+// TODO(tmdiep): Move functions from chrome/browser/extension_util.h/cc that are
+// only dependent on extensions/ here.
+
+// Returns true if |extension_id| identifies an extension that is installed
+// permanently and not ephemerally.
+bool IsExtensionInstalledPermanently(const std::string& extension_id,
+ content::BrowserContext* context);
+
+// Returns true if |extension_id| identifies an ephemeral app.
+bool IsEphemeralApp(const std::string& extension_id,
+ content::BrowserContext* context);
+
+} // namespace util
+} // namespace extensions
+
+#endif // EXTENSIONS_BROWSER_EXTENSION_UTIL_H_
« no previous file with comments | « extensions/browser/extension_prefs.cc ('k') | extensions/browser/extension_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698