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

Issue 528383003: BrowserPlugin Cleanup: Simplify update device scale factor (Closed)

Created:
6 years, 3 months ago by Fady Samuel
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

BrowserPlugin Cleanup: Simplify update device scale factor This CL removes the passed parameter of device_scale_factor and in BrowserPlugin::UpdateDeviceScaleFactor since it's not used. This CL also removes GetSizeParams because it's only used once. Repaints are now set whenever the device scale factor changes. Also remove all calls to .get() on scoped_ptrs which are unnecessary. BUG=none TBR=creis@chromium.org for trivial render_view_impl change. Committed: https://crrev.com/2f5c8d6545f1c6e6e386a6f3a50059befd87e1dd Cr-Commit-Position: refs/heads/master@{#293197}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Restored calls to .get() for refptrs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -38 lines) Patch
M content/renderer/browser_plugin/browser_plugin.h View 2 chunks +2 lines, -9 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 8 chunks +19 lines, -25 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (5 generated)
Fady Samuel
+lazyboy@: for browser_plugin changes +creis for render_view_impl.cc
6 years, 3 months ago (2014-09-03 16:45:19 UTC) #2
lazyboy
https://codereview.chromium.org/528383003/diff/1/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (left): https://codereview.chromium.org/528383003/diff/1/content/renderer/browser_plugin/browser_plugin.cc#oldcode152 content/renderer/browser_plugin/browser_plugin.cc:152: if (compositing_helper_.get()) I think this should stay as is, ...
6 years, 3 months ago (2014-09-03 16:58:31 UTC) #3
Fady Samuel
PTAL https://codereview.chromium.org/528383003/diff/1/content/renderer/browser_plugin/browser_plugin.cc File content/renderer/browser_plugin/browser_plugin.cc (left): https://codereview.chromium.org/528383003/diff/1/content/renderer/browser_plugin/browser_plugin.cc#oldcode152 content/renderer/browser_plugin/browser_plugin.cc:152: if (compositing_helper_.get()) On 2014/09/03 16:58:31, lazyboy wrote: > ...
6 years, 3 months ago (2014-09-03 17:30:52 UTC) #4
lazyboy
lgtm
6 years, 3 months ago (2014-09-03 17:34:27 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/528383003/20001
6 years, 3 months ago (2014-09-03 17:58:45 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 18:54:32 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_swarming/builds/12527)
6 years, 3 months ago (2014-09-03 19:30:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/528383003/20001
6 years, 3 months ago (2014-09-03 19:34:59 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-09-03 20:17:11 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 78dfe41a97c66eea2f64ce85037b6562d01c5027
6 years, 3 months ago (2014-09-03 21:20:54 UTC) #14
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/2f5c8d6545f1c6e6e386a6f3a50059befd87e1dd Cr-Commit-Position: refs/heads/master@{#293197}
6 years, 3 months ago (2014-09-10 03:27:47 UTC) #15
Charlie Reis
[+dcheng] render_view_impl.cc LGTM, but removing .get()s on scoped_ptrs is not ok. Daniel is removing implicit ...
6 years, 3 months ago (2014-09-10 04:51:22 UTC) #17
lazyboy
On 2014/09/10 04:51:22, Charlie Reis wrote: > [+dcheng] > > render_view_impl.cc LGTM, but removing .get()s ...
6 years, 3 months ago (2014-09-10 15:54:54 UTC) #18
Charlie Reis
6 years, 3 months ago (2014-09-10 23:18:40 UTC) #19
Message was sent while issue was closed.
On 2014/09/10 15:54:54, lazyboy wrote:
> On 2014/09/10 04:51:22, Charlie Reis wrote:
> > [+dcheng]
> > 
> > render_view_impl.cc LGTM, but removing .get()s on scoped_ptrs is not ok. 
> Daniel
> > is removing implicit conversions in http://crbug.com/110610 because they're
> > dangerous (easy to leak or cause UaFs).
> 
> I believe this is about scoped_refptrs as opposed to scoped_ptrs?
> This CL doesn't remove implicit conversions from scoped_refptr<T> to T*.
> The ones that are done are all scoped_ptrs.

Thanks, works for me.

Powered by Google App Engine
This is Rietveld 408576698