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

Unified Diff: chrome/browser/web_applications/web_app.cc

Issue 1771033003: gfx::Image: Added thread checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove UpdateShortcutWorker changes; instead just disable thread checking. Created 3 years, 5 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/web_applications/web_app.cc
diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
index 4dc5f5351ae6405030ba01b7369e0f0af5f9987c..83b4589c9db014e426d6f511bf80b637222e8782 100644
--- a/chrome/browser/web_applications/web_app.cc
+++ b/chrome/browser/web_applications/web_app.cc
@@ -92,6 +92,7 @@ void UpdateAllShortcutsForShortcutInfo(
const base::Closure& callback,
std::unique_ptr<web_app::ShortcutInfo> shortcut_info) {
base::FilePath shortcut_data_dir = GetShortcutDataDir(*shortcut_info);
+ shortcut_info->favicon.DetachFromThread();
web_app::ShortcutInfo::PostIOTaskAndReply(
base::BindOnce(&web_app::internals::UpdatePlatformShortcuts,
shortcut_data_dir, old_app_title),
@@ -127,6 +128,7 @@ void ScheduleCreatePlatformShortcut(
const web_app::ShortcutLocations& locations,
std::unique_ptr<web_app::ShortcutInfo> shortcut_info) {
base::FilePath shortcut_data_dir = GetShortcutDataDir(*shortcut_info);
+ shortcut_info->favicon.DetachFromThread();
web_app::ShortcutInfo::PostIOTask(
base::BindOnce(
base::IgnoreResult(&web_app::internals::CreatePlatformShortcuts),
« no previous file with comments | « chrome/browser/web_applications/update_shortcut_worker_win.cc ('k') | chrome/browser/web_applications/web_app_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698