Event page rebranding: "transient" key is now "persistent" again.
BUG=no
TEST=no
Review URL: https://chromiumcodereview.appspot.com/10217016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133947 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 7c39d85..020ed03b 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -605,14 +605,11 @@
const std::vector<std::string>& background_scripts() const {
return background_scripts_;
}
- bool background_page_is_transient() const {
- return background_page_is_transient_;
- }
bool has_persistent_background_page() const {
- return has_background_page() && !background_page_is_transient();
+ return has_background_page() && background_page_is_persistent_;
}
bool has_lazy_background_page() const {
- return has_background_page() && background_page_is_transient();
+ return has_background_page() && !background_page_is_persistent_;
}
const GURL& options_url() const { return options_url_; }
const GURL& devtools_url() const { return devtools_url_; }
@@ -767,7 +764,7 @@
bool LoadBackgroundScripts(string16* error);
bool LoadBackgroundPage(const ExtensionAPIPermissionSet& api_permissions,
string16* error);
- bool LoadBackgroundTransient(
+ bool LoadBackgroundPersistent(
const ExtensionAPIPermissionSet& api_permissions,
string16* error);
bool LoadBackgroundAllowJSAccess(
@@ -960,9 +957,9 @@
// present, background_url_ will be empty and generated by GetBackgroundURL().
std::vector<std::string> background_scripts_;
- // False if the background page should stay loaded forever; true if it should
- // load on-demand (when it needs to handle an event). Defaults to false.
- bool background_page_is_transient_;
+ // True if the background page should stay loaded forever; false if it should
+ // load on-demand (when it needs to handle an event). Defaults to true.
+ bool background_page_is_persistent_;
// True if the background page can be scripted by pages of the app or
// extension, in which case all such pages must run in the same process.