DescriptionUtility process: move GTK initialization to the plugin loading code path.
Since GTK initialization loads shared libraries and accesses
the file system, having this code present in every code path
that uses the utility process would prevent us from sandboxing
the uses of the utility process that don't access the filesystem
themselves.
Moreover, since GTK initialization is only used for plugin loading,
which cannot be sandboxed, there is no harm in moving it to the
plugin loading path. We do check that the GTK thread system has not
already been initialized (only needed for glib < 2.24):
http://developer.gnome.org/glib/2.28/glib-Threads.html#g-thread-init
BUG=93109
TEST=Similar to issue 8774048, having libtotem plugins installed,
go to about:plugins and check that they are present.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113904
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|