Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Issue 10989062: Fixes minor nits in Instant. (Closed)

Created:
8 years, 2 months ago by sreeram
Modified:
8 years, 2 months ago
Reviewers:
sky
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, samarth, sreeram, gideonwald, dominich, Aaron Boodman, David Black, Jered, darin-cc_chromium.org, Shishir
Visibility:
Public.

Description

Fixes minor nits in Instant. Perfcrastination: - Adhere to the style guide with respect to DCHECKs: Either remove them if they are not "must be true", or remove the "if (!...)" handlers. - Disallow the default constructor in most places. - Let the unload handler live across Instant pref changes (so that tabs are not prematurely destroyed). - Delay-destruct objects whose methods are callers are on the stack. BUG=none [email protected] TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159247

Patch Set 1 #

Patch Set 2 : Build fix #

Total comments: 2

Patch Set 3 : Elide scoped_ptr #

Patch Set 4 : Rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -74 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 8 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/instant/instant_loader.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 6 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/instant/instant_unload_handler.h View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/instant/instant_unload_handler.cc View 1 5 chunks +14 lines, -23 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 chunks +1 line, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sreeram
Please review.
8 years, 2 months ago (2012-09-27 22:44:09 UTC) #1
sky
LGTM http://codereview.chromium.org/10989062/diff/2001/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): http://codereview.chromium.org/10989062/diff/2001/chrome/browser/ui/browser_instant_controller.cc#newcode32 chrome/browser/ui/browser_instant_controller.cc:32: instant_unload_handler_(new InstantUnloadHandler(browser)) { Since this is now created ...
8 years, 2 months ago (2012-09-27 23:51:11 UTC) #2
sreeram
http://codereview.chromium.org/10989062/diff/2001/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): http://codereview.chromium.org/10989062/diff/2001/chrome/browser/ui/browser_instant_controller.cc#newcode32 chrome/browser/ui/browser_instant_controller.cc:32: instant_unload_handler_(new InstantUnloadHandler(browser)) { On 2012/09/27 23:51:11, sky wrote: > ...
8 years, 2 months ago (2012-09-28 01:11:25 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10989062/7001
8 years, 2 months ago (2012-09-28 06:27:51 UTC) #4
commit-bot: I haz the power
Failed to apply patch for chrome/browser/instant/instant_controller.cc: While running patch -p1 --forward --force; patching file chrome/browser/instant/instant_controller.cc ...
8 years, 2 months ago (2012-09-28 06:27:54 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/10989062/4010
8 years, 2 months ago (2012-09-28 10:47:44 UTC) #6
commit-bot: I haz the power
Change committed as 159247
8 years, 2 months ago (2012-09-28 13:30:58 UTC) #7
sky
On Thu, Sep 27, 2012 at 6:11 PM, <[email protected]> wrote: > > http://codereview.chromium.org/10989062/diff/2001/chrome/browser/ui/browser_instant_controller.cc > File ...
8 years, 2 months ago (2012-09-28 15:53:01 UTC) #8
sreeram
8 years, 2 months ago (2012-09-28 15:58:31 UTC) #9
On Fri, Sep 28, 2012 at 8:52 AM, Scott Violet <[email protected]> wrote:
> You should make it a value, not a pointer. From the style guide: "Do
> not replace data members with pointers just to avoid an #include."

Thanks. Will make the change in my next CL.

Powered by Google App Engine
This is Rietveld 408576698