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

Unified Diff: chrome/browser/ui/app_list/search_builder.cc

Issue 11968044: Fix login visual hitch on chromebook (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/app_list/search_builder.cc
diff --git a/chrome/browser/ui/app_list/search_builder.cc b/chrome/browser/ui/app_list/search_builder.cc
index b884fe1835f1936e807a9f02217a9c4946041580..46f9c890788db4cb3d54d403902fb7f165b4f635 100644
--- a/chrome/browser/ui/app_list/search_builder.cc
+++ b/chrome/browser/ui/app_list/search_builder.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -254,6 +254,7 @@ class ContactResult : public SearchBuilderResult,
protected:
// Overridden from SearchBuilderResult:
virtual void UpdateIcon() OVERRIDE {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
const contacts::Contact* contact = GetContact();
if (contact && contact->has_raw_untrusted_photo()) {
photo_decoder_ =
@@ -261,7 +262,9 @@ class ContactResult : public SearchBuilderResult,
this,
contact->raw_untrusted_photo(),
ImageDecoder::DEFAULT_CODEC);
- photo_decoder_->Start();
+ scoped_refptr<base::MessageLoopProxy> task_runner =
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI);
+ photo_decoder_->Start(task_runner);
} else {
SetIcon(
*ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
« no previous file with comments | « chrome/browser/profiles/profile_downloader.cc ('k') | chrome/browser/ui/webui/chromeos/login/user_image_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698