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

Issue 149424: linux: move gtk_init to the right thread (Closed)

Created:
11 years, 5 months ago by Antoine Labour
Modified:
9 years, 7 months ago
Reviewers:
jam, Evan Martin
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

linux: move gtk_init to the right thread In the plugin process, gtk_init needs to be called from the UI thread (PluginThread) not the main thread (PluginMain) which is an IO thread. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20340

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -16 lines) Patch
M chrome/plugin/plugin_main.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/plugin/plugin_thread.cc View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Antoine Labour
11 years, 5 months ago (2009-07-09 22:58:56 UTC) #1
jam
lgtm http://codereview.chromium.org/149424/diff/1/3 File chrome/plugin/plugin_thread.cc (right): http://codereview.chromium.org/149424/diff/1/3#newcode61 Line 61: // TODO(evanm): hoist this up nearer to ...
11 years, 5 months ago (2009-07-09 23:06:52 UTC) #2
Evan Martin
LGTM http://codereview.chromium.org/149424/diff/1/3 File chrome/plugin/plugin_thread.cc (right): http://codereview.chromium.org/149424/diff/1/3#newcode61 Line 61: // TODO(evanm): hoist this up nearer to ...
11 years, 5 months ago (2009-07-09 23:11:29 UTC) #3
jam
http://codereview.chromium.org/149424/diff/1/3 File chrome/plugin/plugin_thread.cc (right): http://codereview.chromium.org/149424/diff/1/3#newcode61 Line 61: // TODO(evanm): hoist this up nearer to where ...
11 years, 5 months ago (2009-07-09 23:16:47 UTC) #4
Antoine Labour
On Thu, Jul 9, 2009 at 4:16 PM, <jam@chromium.org> wrote: > > http://codereview.chromium.org/149424/diff/1/3 > File ...
11 years, 5 months ago (2009-07-09 23:20:58 UTC) #5
Antoine Labour
On 2009/07/09 23:20:58, Antoine Labour wrote: > On Thu, Jul 9, 2009 at 4:16 PM, ...
11 years, 5 months ago (2009-07-10 00:06:55 UTC) #6
Evan Martin
11 years, 5 months ago (2009-07-10 01:17:16 UTC) #7
On 2009/07/10 00:06:55, Antoine Labour wrote:
> On 2009/07/09 23:20:58, Antoine Labour wrote:
> > On Thu, Jul 9, 2009 at 4:16 PM, <jam@chromium.org> wrote:
> > 
> > >
> > > http://codereview.chromium.org/149424/diff/1/3
> > > File chrome/plugin/plugin_thread.cc (right):
> > >
> > > http://codereview.chromium.org/149424/diff/1/3#newcode61
> > > Line 61: // TODO(evanm): hoist this up nearer to where we have
> > > argc/argv.
> > > On 2009/07/09 23:11:29, Evan Martin wrote:
> > >
> > >> On 2009/07/09 23:06:52, John Abd-El-Malek wrote:
> > >> > this TODO can now be removed?
> > >>
> > >
> > >  My TODO was thinking we should run this code from main().  It seems
> > >>
> > > weird to
> > >
> > >> construct this argc specially when we have argc one or two stack
> > >>
> > > frames up...
> > >
> > > Not anymore, this is in a different thread which is why I was saying it
> > > doesn't make sense anymore.
> > 
> > 
> > We /could/ add the original argv as a char ** to CommandLine. It's a minor
> > gain though, if gtk_init may modify the strings, we still need to make
> > copies (for thread safety).
> > 
> > 
> > 
> > >
> > >
> > > http://codereview.chromium.org/149424
> > >
> 
> I will check in with the TODO removed, let me know if you disagree.

LGTM

Powered by Google App Engine
This is Rietveld 408576698