summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/webui/history2_ui.cc
diff options
context:
space:
mode:
authorgroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 19:25:08 +0000
committergroby@chromium.org <groby@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 19:25:08 +0000
commit4541c7e3b14ba45bc81d7dcf7ff6a05f587233b5 (patch)
tree640d0f6164f6bb943fadb0fe0f49b299a393cb88 /chrome/browser/ui/webui/history2_ui.cc
parent94325fcae6cd3783276024a02f6ce30daa169597 (diff)
downloadchromium_src-4541c7e3b14ba45bc81d7dcf7ff6a05f587233b5.zip
chromium_src-4541c7e3b14ba45bc81d7dcf7ff6a05f587233b5.tar.gz
chromium_src-4541c7e3b14ba45bc81d7dcf7ff6a05f587233b5.tar.bz2
Coverity fixes for CHECKED_RETURN
CID=16094,12870,12867,12738,12649 R=vandebo@chromium.org BUG=none TEST=none Review URL: http://codereview.chromium.org/7218028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/webui/history2_ui.cc')
-rw-r--r--chrome/browser/ui/webui/history2_ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/webui/history2_ui.cc b/chrome/browser/ui/webui/history2_ui.cc
index c9cab20..63ff80c 100644
--- a/chrome/browser/ui/webui/history2_ui.cc
+++ b/chrome/browser/ui/webui/history2_ui.cc
@@ -325,8 +325,8 @@ void BrowsingHistoryHandler2::ExtractSearchHistoryArguments(
const StringValue* string_value =
static_cast<const StringValue*>(list_member);
string16 string16_value;
- string_value->GetAsString(&string16_value);
- base::StringToInt(string16_value, month);
+ if (string_value->GetAsString(&string16_value))
+ base::StringToInt(string16_value, month);
}
}