| Index: chrome/browser/ui/webui/print_preview/print_preview_handler.h
|
| diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
|
| index 4f024968009ce7b116fb59532f41539a15c1892a..bfff2145971c64e3f6d8e5a1f10f98fa93d16162 100644
|
| --- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
|
| +++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
|
| @@ -105,6 +105,8 @@ class PrintPreviewHandler
|
| return regenerate_preview_request_count_;
|
| }
|
|
|
| + void SetCallbackForTesting(const base::Closure* callback);
|
| +
|
| private:
|
| friend class PrintPreviewPdfGeneratedBrowserTest;
|
| FRIEND_TEST_ALL_PREFIXES(PrintPreviewPdfGeneratedBrowserTest,
|
| @@ -332,6 +334,10 @@ class PrintPreviewHandler
|
|
|
| base::WeakPtrFactory<PrintPreviewHandler> weak_factory_;
|
|
|
| + // Callback function to end message loops for observers of the print preview
|
| + // UI.
|
| + const base::Closure* callback_for_test_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
|
| };
|
|
|
|
|