|
|
Created:
6 years, 10 months ago by spartha Modified:
6 years, 9 months ago Reviewers:
Ilya Sherman CC:
chromium-reviews, benquan, jam, browser-components-watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Visibility:
Public. |
DescriptionCleanup SendAutofillTypePredictionsToRenderer
Minor refactoring/code cleanup adding the check for Renderer to do an early return if the Renderer is not available.
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255010
Patch Set 1 #
Total comments: 4
Patch Set 2 : #Messages
Total messages: 16 (0 generated)
Minor change PTAL.
On 2014/02/26 05:52:05, spartha wrote: > Minor change PTAL. Will close the review if this is not worth the change.
Thanks for the cleanup patch. LG with the following fixes: https://codereview.chromium.org/176943007/diff/1/components/autofill/content/... File components/autofill/content/browser/autofill_driver_impl.cc (right): https://codereview.chromium.org/176943007/diff/1/components/autofill/content/... components/autofill/content/browser/autofill_driver_impl.cc:121: return; Please reformat this like so: if (!CommandLine::ForCurrentProcess()->HasSwitch( switches::kShowAutofillTypePredictions)) return; if (!RendererIsAvailable()) return; https://codereview.chromium.org/176943007/diff/1/components/autofill/content/... components/autofill/content/browser/autofill_driver_impl.cc:125: return; This if-stmt is no longer needed if you want to switch to using the named RendererIsAvailable() method instead.
Also, please update the CL description to indicate that this is a cleanup patch to make style more consistent throughout the file, rather than a functionality change. The check already existed in the function; it was just written in a different way.
Apologies that this got dropped, I wasn't checking the dashboard to my Google account. Ilya is a better person to review this anyway.
Thanks for review. Updated the patch as per the review comments. PTAL https://codereview.chromium.org/176943007/diff/1/components/autofill/content/... File components/autofill/content/browser/autofill_driver_impl.cc (right): https://codereview.chromium.org/176943007/diff/1/components/autofill/content/... components/autofill/content/browser/autofill_driver_impl.cc:121: return; On 2014/03/03 23:07:34, Ilya Sherman wrote: > Please reformat this like so: > > if (!CommandLine::ForCurrentProcess()->HasSwitch( > switches::kShowAutofillTypePredictions)) > return; > > if (!RendererIsAvailable()) > return; Done. https://codereview.chromium.org/176943007/diff/1/components/autofill/content/... components/autofill/content/browser/autofill_driver_impl.cc:125: return; On 2014/03/03 23:07:34, Ilya Sherman wrote: > This if-stmt is no longer needed if you want to switch to using the named > RendererIsAvailable() method instead. Done.
Thanks. Please also update the CL description, as I requested in my previous review.
On 2014/03/04 22:37:23, Ilya Sherman wrote: > Thanks. Please also update the CL description, as I requested in my previous > review. Sorry missed that. Updated, PTAL
LGTM, thanks
The CQ bit was checked by sudarshan.p@samsung.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/176943007/20001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
The CQ bit was checked by sudarshan.p@samsung.com
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/176943007/20001
Message was sent while issue was closed.
Change committed as 255010 |