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

Issue 6731080: Make UserScriptIdleScheduler not tied to NavigationState, as part of removing the extension depen... (Closed)

Created:
9 years, 9 months ago by jam
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, Erik does not do reviews, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Make UserScriptIdleScheduler not tied to NavigationState, as part of removing the extension dependencies from content. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=80029

Patch Set 1 : '' #

Total comments: 4

Patch Set 2 : a different way #

Unified diffs Side-by-side diffs Delta from patch set Stats (+211 lines, -187 lines) Patch
M chrome/renderer/extensions/extension_helper.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 1 2 chunks +21 lines, -0 lines 0 comments Download
M chrome/renderer/user_script_idle_scheduler.h View 1 2 chunks +32 lines, -16 lines 0 comments Download
M chrome/renderer/user_script_idle_scheduler.cc View 1 2 chunks +146 lines, -16 lines 0 comments Download
M content/renderer/navigation_state.h View 3 chunks +0 lines, -9 lines 0 comments Download
M content/renderer/navigation_state.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M content/renderer/render_view.h View 5 chunks +0 lines, -21 lines 0 comments Download
M content/renderer/render_view.cc View 10 chunks +2 lines, -113 lines 0 comments Download
M content/renderer/render_view_observer.h View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Aaron Boodman
This is cool. LGTM http://codereview.chromium.org/6731080/diff/7001/chrome/renderer/extensions/extension_helper.cc File chrome/renderer/extensions/extension_helper.cc (right): http://codereview.chromium.org/6731080/diff/7001/chrome/renderer/extensions/extension_helper.cc#newcode39 chrome/renderer/extensions/extension_helper.cc:39: // Check first if we ...
9 years, 8 months ago (2011-03-30 21:11:48 UTC) #1
jam
This isn't ready yet (I didn't publish it for that reason). It seems like the ...
9 years, 8 months ago (2011-03-30 21:31:17 UTC) #2
Aaron Boodman
On 2011/03/30 21:31:17, John Abd-El-Malek wrote: > This isn't ready yet (I didn't publish it ...
9 years, 8 months ago (2011-03-31 00:34:00 UTC) #3
jam
9 years, 8 months ago (2011-03-31 00:47:57 UTC) #4
On Wed, Mar 30, 2011 at 5:34 PM, <[email protected]> wrote:

> On 2011/03/30 21:31:17, John Abd-El-Malek wrote:
>
>> This isn't ready yet (I didn't publish it for that reason).  It seems like
>> the WebKit API has a bug where WebFrameClient::willClose is called at the
>> wrong time, hence the failing tests.  I'm investigating.
>>
>
> Sorry, I always forget to check the publish state.


np.  I have a new version out that passes the failing tests.  I switched
from FrameWillClose to FrameDetached, since the former happens across
navigations and even multiple times while loading a page.  Since the
UserScriptIdleScheuler now lasts throughout the lifetime of a frame, I reset
the state in DidStartProvisionalLoad so that we keep injecting as the frame
goes to different pages.


>
> http://codereview.chromium.org/6731080/
>

Powered by Google App Engine
This is Rietveld 408576698