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

Unified Diff: chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h

Issue 18986012: Media Galleries API Picasa: Make PicasaDataProvider handle async PMP and INI parsing robustly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0039-picasa-import-sandbox-ini-parsing
Patch Set: Add invalidate call. Created 7 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/media_galleries/fileapi/safe_picasa_album_table_reader.h
diff --git a/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h b/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h
index 7ba576488449cf510a6d72b6220f139ee9ebf27d..94a12aa7dea947f6fec562967ae87ff8225671cf 100644
--- a/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h
+++ b/chrome/browser/media_galleries/fileapi/safe_picasa_album_table_reader.h
@@ -31,7 +31,10 @@ namespace picasa {
// utility process replies or when it dies.
class SafePicasaAlbumTableReader : public content::UtilityProcessHostClient {
public:
- typedef base::Callback<void(bool,
+ // Callback includes a refptr to itself to guarantee that this object
+ // survives past the execution of its last posted callback.
+ typedef base::Callback<void(scoped_refptr<SafePicasaAlbumTableReader>,
+ bool,
const std::vector<AlbumInfo>&,
const std::vector<AlbumInfo>&)> ParserCallback;

Powered by Google App Engine
This is Rietveld 408576698