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

Issue 4136004: Track in which frames navigation errors occurred and don't send further navigation events for them (Closed)

Created:
10 years, 1 month ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org, Erik does not do reviews, brettw-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Track in which frames navigation errors occurred and don't send further navigation events for them BUG=50943 TEST=browser_tests:*.WebNavigationEvents*,unit_tests:FrameNavigationStateTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64210

Patch Set 1 #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+190 lines, -45 lines) Patch
M chrome/browser/extensions/extension_webnavigation_api.h View 2 chunks +48 lines, -0 lines 7 comments Download
M chrome/browser/extensions/extension_webnavigation_api.cc View 6 chunks +66 lines, -3 lines 1 comment Download
A chrome/browser/extensions/extension_webnavigation_unittest.cc View 1 chunk +68 lines, -0 lines 4 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 chunk +2 lines, -0 lines 1 comment Download
M chrome/renderer/render_view.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/webnavigation/navigation2/test.html View 3 chunks +0 lines, -39 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jochen (gone - plz use gerrit)
please review
10 years, 1 month ago (2010-10-27 09:54:39 UTC) #1
Paweł Hajdan Jr.
Drive-by with minor test comments. No need to wait for another review by me. http://codereview.chromium.org/4136004/diff/1/4 ...
10 years, 1 month ago (2010-10-27 10:03:02 UTC) #2
yzshen
http://codereview.chromium.org/4136004/diff/1/2 File chrome/browser/extensions/extension_webnavigation_api.cc (right): http://codereview.chromium.org/4136004/diff/1/2#newcode86 chrome/browser/extensions/extension_webnavigation_api.cc:86: frame_id++) { [optional] Better to use ++frame_id. http://codereview.chromium.org/4136004/diff/1/3 File ...
10 years, 1 month ago (2010-10-27 17:43:38 UTC) #3
jochen (gone - plz use gerrit)
http://codereview.chromium.org/4136004/diff/1/3 File chrome/browser/extensions/extension_webnavigation_api.h (right): http://codereview.chromium.org/4136004/diff/1/3#newcode27 chrome/browser/extensions/extension_webnavigation_api.h:27: class FrameNavigationState : public NotificationObserver { On 2010/10/27 17:43:38, ...
10 years, 1 month ago (2010-10-27 18:01:13 UTC) #4
yzshen
http://codereview.chromium.org/4136004/diff/1/3 File chrome/browser/extensions/extension_webnavigation_api.h (right): http://codereview.chromium.org/4136004/diff/1/3#newcode30 chrome/browser/extensions/extension_webnavigation_api.h:30: ~FrameNavigationState(); On 2010/10/27 18:01:14, jochen wrote: > On 2010/10/27 ...
10 years, 1 month ago (2010-10-27 18:52:28 UTC) #5
Matt Perry
LGTM http://codereview.chromium.org/4136004/diff/1/6 File chrome/common/url_constants.cc (right): http://codereview.chromium.org/4136004/diff/1/6#newcode141 chrome/common/url_constants.cc:141: const char kChromeUnreachableWebDataURL[] = "chrome://chromewebdata/"; nit: the "Chrome" ...
10 years, 1 month ago (2010-10-27 19:23:42 UTC) #6
jochen (gone - plz use gerrit)
10 years, 1 month ago (2010-10-27 20:08:25 UTC) #7
On 2010/10/27 18:52:28, yzshen wrote:
> http://codereview.chromium.org/4136004/diff/1/3
> File chrome/browser/extensions/extension_webnavigation_api.h (right):
> 
> http://codereview.chromium.org/4136004/diff/1/3#newcode30
> chrome/browser/extensions/extension_webnavigation_api.h:30:
> ~FrameNavigationState();
> On 2010/10/27 18:01:14, jochen wrote:
> > On 2010/10/27 17:43:38, yzshen wrote:
> > > Please consider to add "virtual" for the destructor. (Although it works
fine
> > > without "virtual", I think it is more clear to have it.)
> > 
> > why? It'll just make the destructor call more expensive
> > 
> 
> Since ~NotificationObserver is declared as "virtual",
> ~FrameNavigationState is already virtual, no matter you add the "virtual"
> keyword or not.
> 
> Moreover, it is required by the C++ style guide:
> Make your destructor virtual if necessary. If your class has virtual methods,
> its destructor should be virtual.
> ...
> When redefining an inherited virtual function, explicitly declare it virtual
in
> the declaration of the derived class. Rationale: If virtual is omitted, the
> reader has to check all ancestors of the class in question to determine if the
> function is virtual or not.

you're right, I missed the fact that the base class is virtual, so it's not
something to consider but a bug not to make it virtual :)

Powered by Google App Engine
This is Rietveld 408576698