Index: chrome/browser/extensions/api/page_capture/page_capture_api.cc |
diff --git a/chrome/browser/extensions/api/page_capture/page_capture_api.cc b/chrome/browser/extensions/api/page_capture/page_capture_api.cc |
index ba0fd507ef1bcf6dce6f64c314f298cfbcfc11c1..4707e6410daf5769df34757c3dd1d9bb7e17f1ed 100644 |
--- a/chrome/browser/extensions/api/page_capture/page_capture_api.cc |
+++ b/chrome/browser/extensions/api/page_capture/page_capture_api.cc |
@@ -157,7 +157,7 @@ void PageCaptureSaveAsMHTMLFunction::ReturnFailure(const std::string& error) { |
SendResponse(false); |
- Release(); // Balanced in Run() |
+ // Must not Release() here, OnMessageReceived will call it eventually. |
Devlin
2016/03/04 20:31:15
Wow, this function is crazy.
meacer
2016/03/04 20:37:59
Well, at least there is only one AddRef()/Release(
|
} |
void PageCaptureSaveAsMHTMLFunction::ReturnSuccess(int64_t file_size) { |