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

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

Issue 93883004: Sync the launch type pref for apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change launch_type to an enum in proto 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
Index: chrome/browser/extensions/launch_util.h
diff --git a/chrome/browser/extensions/launch_util.h b/chrome/browser/extensions/launch_util.h
index 0cdfb72fa484d4244b6c6822d1e399f4233055cd..8afa202a196508ad884b89180e2dfc782ebda51f 100644
--- a/chrome/browser/extensions/launch_util.h
+++ b/chrome/browser/extensions/launch_util.h
@@ -9,6 +9,8 @@
#include "chrome/common/extensions/extension_constants.h"
+class ExtensionService;
+
namespace extensions {
class Extension;
@@ -22,10 +24,13 @@ LaunchType GetLaunchType(const ExtensionPrefs* prefs,
const Extension* extension);
// Sets an extension's launch type preference.
-void SetLaunchType(ExtensionPrefs* prefs,
+void SetLaunchType(ExtensionService* prefs,
const std::string& extension_id,
LaunchType launch_type);
+bool HasPreferredLaunchType(const ExtensionPrefs* prefs,
+ const Extension* extension);
+
// Finds the right launch container based on the launch type.
// If |extension|'s prefs do not have a launch type set, then the default
// value from GetLaunchType() is used to choose the launch container.

Powered by Google App Engine
This is Rietveld 408576698