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

Unified Diff: chrome/common/extensions/extension.h

Issue 14241002: Move the parsing of app.launch related keys out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 4774eadea1270c5a888d6566260221ccf2743b95..809282440ce11ea31d9a20f8636244127c5d1c73 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -313,9 +313,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// the browser might load (like themes and page action icons).
std::set<base::FilePath> GetBrowserImages() const;
- // Gets the fully resolved absolute launch URL.
- GURL GetFullLaunchURL() const;
-
// Returns true if this extension can execute script on a page. If a
// UserScript object is passed, permission to run that specific script is
// checked (using its matches list). Otherwise, permission to execute script
@@ -457,15 +454,12 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
bool is_legacy_packaged_app() const;
bool is_extension() const;
bool can_be_incognito_enabled() const;
+
+ // TODO(c.joethomas@gmail.com): Move the below extent related functions to its
+ // ManifestData.
void AddWebExtentPattern(const URLPattern& pattern);
+ void ClearWebExtentPatterns();
const URLPatternSet& web_extent() const { return extent_; }
- const std::string& launch_local_path() const { return launch_local_path_; }
- const std::string& launch_web_url() const { return launch_web_url_; }
- extension_misc::LaunchContainer launch_container() const {
- return launch_container_;
- }
- int launch_width() const { return launch_width_; }
- int launch_height() const { return launch_height_; }
// Theme-related.
bool is_theme() const;
@@ -537,8 +531,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
const char* list_error,
const char* value_error,
string16* error);
- bool LoadLaunchContainer(string16* error);
- bool LoadLaunchURL(string16* error);
bool LoadSharedFeatures(string16* error);
bool LoadDescription(string16* error);
@@ -549,10 +541,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// an extension that has a browser action and a page action.
bool HasMultipleUISurfaces() const;
- // Updates the launch URL and extents for the extension using the given
- // |override_url|.
- void OverrideLaunchUrl(const GURL& override_url);
-
// Custom checks for the experimental permission that can't be expressed in
// _permission_features.json.
bool CanSpecifyExperimentalPermission() const;
@@ -644,25 +632,6 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// parts of the initialization process need information from previous parts).
base::ThreadChecker thread_checker_;
- // The local path inside the extension to use with the launcher.
- std::string launch_local_path_;
-
- // A web url to use with the launcher. Note that this might be relative or
- // absolute. If relative, it is relative to web_origin.
- std::string launch_web_url_;
-
- // The window type that an app's manifest specifies to launch into.
- // This is not always the window type an app will open into, because
- // users can override the way each app launches. See
- // ExtensionPrefs::GetLaunchContainer(), which looks at a per-app pref
- // to decide what container an app will launch in.
- extension_misc::LaunchContainer launch_container_;
-
- // The default size of the container when launching. Only respected for
- // containers like panels and windows.
- int launch_width_;
- int launch_height_;
-
// Should this app be shown in the app launcher.
bool display_in_launcher_;

Powered by Google App Engine
This is Rietveld 408576698