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

Unified Diff: chrome/browser/chromeos/login/screenshot_testing/screenshot_tester.h

Issue 2650903003: Revert of [devtools] Support different encodings for Page.CaptureScreenshot. (Closed)
Patch Set: Created 3 years, 11 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/chromeos/login/screenshot_testing/screenshot_tester.h
diff --git a/chrome/browser/chromeos/login/screenshot_testing/screenshot_tester.h b/chrome/browser/chromeos/login/screenshot_testing/screenshot_tester.h
index eafd43ecc4e712dd45d957fac4744cb386794d6c..64741571f6500568bd7e3a5806fb4f9371bd9d1c 100644
--- a/chrome/browser/chromeos/login/screenshot_testing/screenshot_tester.h
+++ b/chrome/browser/chromeos/login/screenshot_testing/screenshot_tester.h
@@ -24,7 +24,7 @@
ScreenshotTester();
virtual ~ScreenshotTester();
- typedef scoped_refptr<base::RefCountedMemory> PNGFile;
+ typedef scoped_refptr<base::RefCountedBytes> PNGFile;
// Contains the results of comparison
struct Result {
@@ -106,7 +106,7 @@
void LogComparisonResults(const ScreenshotTester::Result& result);
// Saves |png_data| as a current screenshot.
- void ReturnScreenshot(PNGFile* screenshot, PNGFile png_data);
+ void ReturnScreenshot(const PNGFile& screenshot, PNGFile png_data);
// Loads golden screenshot from the disk, assuming it lies at |image_path|.
// Fails if there is no such a file.
@@ -138,7 +138,7 @@
base::FilePath artifacts_dir_;
// |run_loop_quitter_| is used to stop waiting when
- // ui::GrabWindowSnapshotAsyncPNG completes.
+ // ui::GrabWindowSnapshotAsync completes.
base::Closure run_loop_quitter_;
// Is true when we're in test mode:

Powered by Google App Engine
This is Rietveld 408576698