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

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

Issue 1038573002: Fixed thread-unsafe use of gfx::Image in app shortcut creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 9 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/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index 3e9377e3bbac21ac1eb8e62b821119ec21868600..848d1206ba984c9a2539a40db8f793fdd2ffad2a 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -93,11 +93,11 @@ const int kAutoLaunchDefaultTimeoutMilliSec = 50;
void CreateShortcutInWebAppDir(
const base::FilePath& app_data_dir,
base::Callback<void(const base::FilePath&)> callback,
- const web_app::ShortcutInfo& info) {
+ scoped_ptr<web_app::ShortcutInfo> info) {
content::BrowserThread::PostTaskAndReplyWithResult(
- content::BrowserThread::FILE,
- FROM_HERE,
- base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir, info),
+ content::BrowserThread::FILE, FROM_HERE,
+ base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir,
+ base::Passed(&info)),
callback);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698