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

Unified Diff: chrome/browser/extensions/api/image_writer_private/operation.h

Issue 382053004: Adds API test for imageWriterPrivate.writeFromFile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes memory leak. Created 6 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/extensions/api/image_writer_private/operation.h
diff --git a/chrome/browser/extensions/api/image_writer_private/operation.h b/chrome/browser/extensions/api/image_writer_private/operation.h
index b7c467034a12b0292c7db7ebc032cf4380e5eb52..1111d9f45ba90a4e3697499a37f89cb6a164404f 100644
--- a/chrome/browser/extensions/api/image_writer_private/operation.h
+++ b/chrome/browser/extensions/api/image_writer_private/operation.h
@@ -73,8 +73,10 @@ class Operation : public base::RefCountedThreadSafe<Operation> {
image_writer_api::Stage GetStage();
#if !defined(OS_CHROMEOS)
- // Set an ImageWriterClient to use. Should be called only when testing.
- void SetUtilityClientForTesting(
+ // Set an ImageWriterClient to use. Should be called only when testing. This
+ // does not set up automatic shutdown of the client and it must be shutdown
+ // manually.
+ static void SetUtilityClientForTesting(
scoped_refptr<ImageWriterUtilityClient> client);
#endif

Powered by Google App Engine
This is Rietveld 408576698