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

Issue 3312017: Plumbs through window.chrome.setSuggestResult. (Closed)

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

Description

Plumbs through window.chrome.setSuggestResult. It's currently hidden behind a flag. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59165

Patch Set 1 #

Patch Set 2 : more comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -0 lines) Patch
M chrome/browser/renderer_host/browser_render_process_host.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/render_thread.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/renderer/search_extension.h View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/renderer/search_extension.cc View 1 chunk +96 lines, -0 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
sky
10 years, 3 months ago (2010-09-09 04:59:43 UTC) #1
Mike Belshe
LGTM if you are comfortable with the one note I added. http://codereview.chromium.org/3312017/diff/2001/3014 File chrome/renderer/search_extension.cc (right): ...
10 years, 3 months ago (2010-09-10 18:15:06 UTC) #2
sky
10 years, 3 months ago (2010-09-10 18:36:09 UTC) #3
On Fri, Sep 10, 2010 at 11:15 AM,  <mbelshe@chromium.org> wrote:
> LGTM if you are comfortable with the one note I added.
>
>
> http://codereview.chromium.org/3312017/diff/2001/3014
> File chrome/renderer/search_extension.cc (right):
>
> http://codereview.chromium.org/3312017/diff/2001/3014#newcode45
> chrome/renderer/search_extension.cc:45: "chrome.setSuggestResult =
> function(text) {"
> note: This function will be available to anyone that wants to call it.
> For instance, someone could write an extension which calls this function
> with a bunch of spam.  Do we want to allow that?

I'm ok with that for now as I'm going to verify the message in the
browser. Is there a better way where I can tell the renderer to only
enable for a specific page?

  -Scott

> http://codereview.chromium.org/3312017/diff/2001/3014#newcode65
> chrome/renderer/search_extension.cc:65: if (!webframe) return NULL;
> nit:  are we supposed to break this to two lines?
>
> http://codereview.chromium.org/3312017/show
>

Powered by Google App Engine
This is Rietveld 408576698