diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 17:27:29 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-07 17:27:29 +0000 |
commit | bbe6aa04e14d5c7d176f303c199e2bf85ea40de7 (patch) | |
tree | 860ebcf3339fc0446c17a94b78f358ccff11425e /chrome/browser/automation/automation_provider_observers.cc | |
parent | 99f0c0818d6e612e6581f38bd0d53edceae44863 (diff) | |
download | chromium_src-bbe6aa04e14d5c7d176f303c199e2bf85ea40de7.zip chromium_src-bbe6aa04e14d5c7d176f303c199e2bf85ea40de7.tar.gz chromium_src-bbe6aa04e14d5c7d176f303c199e2bf85ea40de7.tar.bz2 |
Add an AddHistoryItem() API to PyAuto with example use.
Change GetHistory time value from int to float to keep precision.
BUG=none
TEST=run pyautolib
Review URL: http://codereview.chromium.org/2036004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46704 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_provider_observers.cc')
-rw-r--r-- | chrome/browser/automation/automation_provider_observers.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc index eb8e247..3ca82e6 100644 --- a/chrome/browser/automation/automation_provider_observers.cc +++ b/chrome/browser/automation/automation_provider_observers.cc @@ -952,8 +952,8 @@ void AutomationProviderHistoryObserver::HistoryQueryComplete( history::URLResult const &page = (*results)[i]; page_value->SetString(L"title", page.title()); page_value->SetString(L"url", page.url().spec()); - page_value->SetInteger(L"time", - static_cast<int>(page.visit_time().ToTimeT())); + page_value->SetReal(L"time", + static_cast<double>(page.visit_time().ToDoubleT())); page_value->SetString(L"snippet", page.snippet().text()); page_value->SetBoolean( L"starred", |