| Index: chrome/browser/printing/printing_layout_uitest.cc
|
| diff --git a/chrome/browser/printing/printing_layout_uitest.cc b/chrome/browser/printing/printing_layout_uitest.cc
|
| index 5cfe387c45c3505e1126e31a5aecce02b0096367..501a7b354bdfbe4fcafaa4537b9ee1d3d84618af 100644
|
| --- a/chrome/browser/printing/printing_layout_uitest.cc
|
| +++ b/chrome/browser/printing/printing_layout_uitest.cc
|
| @@ -80,15 +80,15 @@ class PrintingLayoutTest : public PrintingTest<UITest> {
|
| if (GenerateFiles()) {
|
| // Copy the .emf and generate an .png.
|
| file_util::CopyFile(test_result, emf);
|
| - Image emf_content(emf.value());
|
| + Image emf_content(emf);
|
| emf_content.SaveToPng(png);
|
| // Saving is always fine.
|
| return 0;
|
| } else {
|
| // File compare between test and result.
|
| - Image emf_content(emf.value());
|
| - Image test_content(test_result.value());
|
| - Image png_content(png.value());
|
| + Image emf_content(emf);
|
| + Image test_content(test_result);
|
| + Image png_content(png);
|
| double diff_emf = emf_content.PercentageDifferent(test_content);
|
|
|
| EXPECT_EQ(0., diff_emf) << verification_name <<
|
|
|