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

Issue 373603007: Refactor to convert vector to scoped_ptr in ZoomController. (Closed)

Created:
6 years, 5 months ago by wjmaclean
Modified:
6 years, 5 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Refactor to convert vector to scoped_ptr in ZoomController. A scoped_ptr has less overhead than a vector. This CL refactors to store ZoomChangedEventData structs via a scoped_ptr since there will be (at most) one of these at a time. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281726

Patch Set 1 #

Total comments: 4

Patch Set 2 : Clean up includes list. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -23 lines) Patch
M chrome/browser/ui/zoom/zoom_controller.h View 1 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/zoom/zoom_controller.cc View 9 chunks +19 lines, -20 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
wjmaclean
I decided to go the scoped_ptr approach. Please take a look?
6 years, 5 months ago (2014-07-07 18:35:29 UTC) #1
Dan Beam
lgtm
6 years, 5 months ago (2014-07-07 18:45:15 UTC) #2
Dan Beam
https://codereview.chromium.org/373603007/diff/1/chrome/browser/ui/zoom/zoom_controller.h File chrome/browser/ui/zoom/zoom_controller.h (right): https://codereview.chromium.org/373603007/diff/1/chrome/browser/ui/zoom/zoom_controller.h#newcode8 chrome/browser/ui/zoom/zoom_controller.h:8: #include <vector> ^ remove https://codereview.chromium.org/373603007/diff/1/chrome/browser/ui/zoom/zoom_controller.h#newcode11 chrome/browser/ui/zoom/zoom_controller.h:11: #include "base/compiler_specific.h" #include ...
6 years, 5 months ago (2014-07-07 18:46:00 UTC) #3
wjmaclean
Thanks! https://codereview.chromium.org/373603007/diff/1/chrome/browser/ui/zoom/zoom_controller.h File chrome/browser/ui/zoom/zoom_controller.h (right): https://codereview.chromium.org/373603007/diff/1/chrome/browser/ui/zoom/zoom_controller.h#newcode8 chrome/browser/ui/zoom/zoom_controller.h:8: #include <vector> On 2014/07/07 18:45:59, Dan Beam wrote: ...
6 years, 5 months ago (2014-07-07 19:01:28 UTC) #4
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 5 months ago (2014-07-07 19:01:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/373603007/20001
6 years, 5 months ago (2014-07-07 19:02:05 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-07 22:57:01 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-07 23:22:27 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/90303)
6 years, 5 months ago (2014-07-07 23:22:28 UTC) #9
wjmaclean
The CQ bit was checked by wjmaclean@chromium.org
6 years, 5 months ago (2014-07-08 11:22:23 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wjmaclean@chromium.org/373603007/20001
6 years, 5 months ago (2014-07-08 11:24:57 UTC) #11
commit-bot: I haz the power
6 years, 5 months ago (2014-07-08 12:07:44 UTC) #12
Message was sent while issue was closed.
Change committed as 281726

Powered by Google App Engine
This is Rietveld 408576698