From 008ff7fb3cc604f96c6b8f0b5f97a883ac611ab7 Mon Sep 17 00:00:00 2001 From: "mtytel@chromium.org" Date: Mon, 19 Dec 2011 08:51:17 +0000 Subject: Added populate parameter to chrome.windows.get, chrome.windows.getCurrent, chrome.windows.getLastFocused BUG=53516 TEST=Run chrome.windows.get(id, {"populate":true}, fun) from an extension Review URL: http://codereview.chromium.org/8969011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114963 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/extension_function_test_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'chrome/browser/extensions/extension_function_test_utils.h') diff --git a/chrome/browser/extensions/extension_function_test_utils.h b/chrome/browser/extensions/extension_function_test_utils.h index e248ec3..225974d 100644 --- a/chrome/browser/extensions/extension_function_test_utils.h +++ b/chrome/browser/extensions/extension_function_test_utils.h @@ -39,6 +39,9 @@ std::string GetString(base::DictionaryValue* val, const std::string& key); // If |val| is a dictionary, return it as one, otherwise NULL. base::DictionaryValue* ToDictionary(base::Value* val); +// If |val| is a list, return it as one, otherwise NULL. +base::ListValue* ToList(base::Value* val); + // Creates an extension instance that can be attached to an ExtensionFunction // before running it. scoped_refptr CreateEmptyExtension(); -- cgit v1.1