summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_idle_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_idle_api.cc')
-rw-r--r--chrome/browser/extensions/extension_idle_api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_idle_api.cc b/chrome/browser/extensions/extension_idle_api.cc
index da1e2b1..0a6a25f 100644
--- a/chrome/browser/extensions/extension_idle_api.cc
+++ b/chrome/browser/extensions/extension_idle_api.cc
@@ -137,7 +137,7 @@ void ExtensionIdlePollingTask::Run() {
bool ExtensionIdleQueryStateFunction::RunImpl() {
int threshold;
- EXTENSION_FUNCTION_VALIDATE(args_->GetAsInteger(&threshold));
+ EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &threshold));
threshold = CheckThresholdBounds(threshold);
IdleState state = ThrottledCalculateIdleState(threshold, profile());
result_.reset(CreateIdleValue(state));