Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(674)

Issue 3405037: Fixed user feedback crash on parameter check (std exception was thrown).... (Closed)

Created:
10 years, 2 months ago by zel
Modified:
9 years, 6 months ago
Reviewers:
dhg
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Fixed user feedback crash on parameter check (std exception was thrown). BUG=chromium-os:6543 TEST=make sure chrome:bugreport does not throw exception Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60732

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M chrome/browser/dom_ui/bug_report_ui.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
zel
10 years, 2 months ago (2010-09-27 21:38:50 UTC) #1
dhg
10 years, 2 months ago (2010-09-27 21:40:28 UTC) #2
LGTM

On Mon, Sep 27, 2010 at 2:38 PM,  <zelidrag@chromium.org> wrote:
> Reviewers: dhg,
>
> Description:
> Fixed user feedback crash on parameter check (std exception was thrown).
>
>
> BUG=chromium-os:6543
> TEST=make sure chrome:bugreport does not throw exception
>
>
> Please review this at http://codereview.chromium.org/3405037/show
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     chrome/browser/dom_ui/bug_report_ui.cc
>
>
> Index: chrome/browser/dom_ui/bug_report_ui.cc
> ===================================================================
> --- chrome/browser/dom_ui/bug_report_ui.cc      (revision 60692)
> +++ chrome/browser/dom_ui/bug_report_ui.cc      (working copy)
> @@ -454,7 +454,8 @@
>
>   std::string params =
> page_url.substr(strlen(chrome::kChromeUIBugReportURL));
>   // Erase the # - the first character.
> -  params.erase(params.begin(),params.begin() + 1);
> +  if (params.length())
> +    params.erase(params.begin(),params.begin() + 1);
>
>   int index = 0;
>   if (!base::StringToInt(params, &index)) {
>
>
>

Powered by Google App Engine
This is Rietveld 408576698