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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 1815363002: Add RetainedRef uses where needed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 8ce03c189ad2afd728937327d47a269f88cf7db0..28ecb02734649f483908c22cee0881bf0911e733 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -841,7 +841,7 @@ void ThemeService::BuildFromExtension(const Extension* extension) {
: chrome::kThemePackFilename);
service->GetFileTaskRunner()->PostTask(
FROM_HERE,
- base::Bind(&WritePackToDiskCallback, pack, pack_path));
+ base::Bind(&WritePackToDiskCallback, base::RetainedRef(pack), pack_path));
// Save only the extension path. The packed file which matches the
// MaterialDesignController::Mode will be loaded via LoadThemePrefs().
« no previous file with comments | « chrome/browser/sync_file_system/local/sync_file_system_backend.cc ('k') | chrome/browser/ui/login/login_prompt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698