summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/user_script.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 01:43:21 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-03 01:43:21 +0000
commit4a1a2bc369f5421d283317afaa17c50bcf7d38f7 (patch)
tree1e80e6522dacfc7df558148f7bb559d9f3141c3b /chrome/common/extensions/user_script.h
parent48076ae0e68b32271a438fd0c3087157abc44324 (diff)
downloadchromium_src-4a1a2bc369f5421d283317afaa17c50bcf7d38f7.zip
chromium_src-4a1a2bc369f5421d283317afaa17c50bcf7d38f7.tar.gz
chromium_src-4a1a2bc369f5421d283317afaa17c50bcf7d38f7.tar.bz2
Revert r30784
TBR=rafaelw@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/user_script.h')
-rw-r--r--chrome/common/extensions/user_script.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/chrome/common/extensions/user_script.h b/chrome/common/extensions/user_script.h
index bdd1e54..28b3aae 100644
--- a/chrome/common/extensions/user_script.h
+++ b/chrome/common/extensions/user_script.h
@@ -28,10 +28,6 @@ class UserScript {
// anything else happens.
DOCUMENT_END, // After the entire document is parsed. Same as
// DOMContentLoaded.
- DOCUMENT_IDLE, // Sometime after DOMContentLoaded, as soon as the document
- // is "idle". Currently this uses the simple heuristic of:
- // min(DOM_CONTENT_LOADED + TIMEOUT, ONLOAD), but no
- // particular injection point is guaranteed.
RUN_LOCATION_LAST // Leave this as the last item.
};
@@ -92,10 +88,9 @@ class UserScript {
typedef std::vector<File> FileList;
- // Constructor. Default the run location to document idle, which is similar
- // to Greasemonkey but should result in better page load times for fast-
- // loading pages.
- UserScript() : run_location_(DOCUMENT_IDLE) {}
+ // Constructor. Default the run location to document end, which is like
+ // Greasemonkey and probably more useful for typical scripts.
+ UserScript() : run_location_(DOCUMENT_END) {}
// The place in the document to run the script.
RunLocation run_location() const { return run_location_; }