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

Issue 6250176: Make RenderView not have to know about how PhishingClassifierDelegate. (Closed)

Created:
9 years, 10 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
Brian Ryner
CC:
chromium-reviews, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org, chrome-anti-phishing_googlegroups.com
Visibility:
Public.

Description

Make RenderView not have to know about how PhishingClassifierDelegate. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74028

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : sync #

Total comments: 12

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -169 lines) Patch
M chrome/renderer/render_thread.h View 1 2 5 chunks +0 lines, -16 lines 0 comments Download
M chrome/renderer/render_thread.cc View 1 2 5 chunks +1 line, -37 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 4 chunks +0 lines, -15 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 11 chunks +18 lines, -31 lines 0 comments Download
M chrome/renderer/render_view_observer.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.h View 1 2 3 chunks +12 lines, -21 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate.cc View 1 2 3 6 chunks +89 lines, -11 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier_delegate_browsertest.cc View 1 2 4 chunks +39 lines, -31 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor.cc View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_thumbnailer.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
jam
9 years, 10 months ago (2011-02-05 02:17:52 UTC) #1
Brian Ryner
Looks nice overall, just a few comments. http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc File chrome/renderer/safe_browsing/phishing_classifier_delegate.cc (right): http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc#newcode87 chrome/renderer/safe_browsing/phishing_classifier_delegate.cc:87: SetPhishingScorer(g_phishing_scorer.Get().get()); I ...
9 years, 10 months ago (2011-02-07 20:08:19 UTC) #2
jam
http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc File chrome/renderer/safe_browsing/phishing_classifier_delegate.cc (right): http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsing/phishing_classifier_delegate.cc#newcode87 chrome/renderer/safe_browsing/phishing_classifier_delegate.cc:87: SetPhishingScorer(g_phishing_scorer.Get().get()); On 2011/02/07 20:08:19, Brian Ryner wrote: > I ...
9 years, 10 months ago (2011-02-07 20:24:49 UTC) #3
Brian Ryner
9 years, 10 months ago (2011-02-07 21:39:41 UTC) #4
LGTM

http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsin...
File chrome/renderer/safe_browsing/phishing_classifier_delegate.cc (right):

http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsin...
chrome/renderer/safe_browsing/phishing_classifier_delegate.cc:153:
classifier_page_text_ = page_text;
On 2011/02/07 20:24:49, John Abd-El-Malek wrote:
> On 2011/02/07 20:08:19, Brian Ryner wrote:
> > As I mentioned to you offline, I'd set this up as a swap() to avoid copying
a
> > potentially large string (up to 64KB).  It still seems preferable to avoid
> > this... what do you think?
> 
> Yeah, I thought about it.  But I decided to skip this optimization because it
> breaks the abstraction between RenderView and its observers.  It's preferable
to
> not add constraints on the ordering of observers.  I think if profiling shows
> that this is needed, we can reconsider, but until then best to keep the API
> simple.

Ok, sounds reasonable.

http://codereview.chromium.org/6250176/diff/7004/chrome/renderer/safe_browsin...
chrome/renderer/safe_browsing/phishing_classifier_delegate.cc:176: /*
On 2011/02/07 20:24:49, John Abd-El-Malek wrote:
> On 2011/02/07 20:08:19, Brian Ryner wrote:
> > Did you mean to leave this commented-out code here?
> 
> yep.  I can't uncomment it until a message is added, which is awaiting
> http://codereview.chromium.org/6398001/

Ok.  If you end up submitting this first, I'll merge it into my change.

Powered by Google App Engine
This is Rietveld 408576698