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

Issue 173216: Move gtk_settings_get_default() call to the UI thread. (Closed)

Created:
11 years, 4 months ago by Evan Stade
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Move gtk_settings_get_default() call to the UI thread. BUG=19971 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=24034

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -6 lines) Patch
M base/mime_util.h View 1 chunk +7 lines, -0 lines 0 comments Download
M base/mime_util_linux.cc View 1 4 chunks +26 lines, -6 lines 0 comments Download
M chrome/browser/icon_loader.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Evan Stade
11 years, 4 months ago (2009-08-21 19:56:08 UTC) #1
Lei Zhang
LGTM
11 years, 4 months ago (2009-08-21 20:59:12 UTC) #2
Evan Martin
http://codereview.chromium.org/173216/diff/1/2 File base/mime_util_linux.cc (right): http://codereview.chromium.org/173216/diff/1/2#newcode50 Line 50: std::string gtk_theme_name_; Comment on this. (E.g. where it ...
11 years, 4 months ago (2009-08-21 21:13:24 UTC) #3
willchan no longer on Chromium
LGTM, thanks for the fix. http://codereview.chromium.org/173216/diff/1/2 File base/mime_util_linux.cc (right): http://codereview.chromium.org/173216/diff/1/2#newcode566 Line 566: Singleton<MimeUtilConstants>::get()->gtk_theme_name_.assign(gtk_theme_name); On 2009/08/21 ...
11 years, 4 months ago (2009-08-21 21:20:37 UTC) #4
Evan Stade
11 years, 4 months ago (2009-08-21 21:34:25 UTC) #5
http://codereview.chromium.org/173216/diff/1/2
File base/mime_util_linux.cc (right):

http://codereview.chromium.org/173216/diff/1/2#newcode50
Line 50: std::string gtk_theme_name_;
On 2009/08/21 21:13:24, Evan Martin wrote:
> Comment on this.  (E.g. where it comes from, when it' valid, etc.) 

Done.

http://codereview.chromium.org/173216/diff/1/2#newcode566
Line 566:
Singleton<MimeUtilConstants>::get()->gtk_theme_name_.assign(gtk_theme_name);
On 2009/08/21 21:20:37, willchan wrote:
> On 2009/08/21 21:13:24, Evan Martin wrote:
> > Is there a possibility of a race between this set and the other thread
> accessing
> > it?
> 
> There shouldn't be.  This code gets executed before the task gets posted to
the
> file thread, so there is no other thread's task to race against yet.

Will is correct, and the comment in the header instructs future callers to make
sure DetectGtkTheme is called _first_.

http://codereview.chromium.org/173216/diff/1/4
File chrome/browser/icon_loader.cc (right):

http://codereview.chromium.org/173216/diff/1/4#newcode13
Line 13: #include <gtk/gtk.h>
On 2009/08/21 21:13:24, Evan Martin wrote:
> this isn't a necessary include

oopsies.

Powered by Google App Engine
This is Rietveld 408576698