OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/service/service_utility_process_host.h" | 5 #include "chrome/service/service_utility_process_host.h" |
6 | 6 |
7 #include "app/app_switches.h" | 7 #include "app/app_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 LOG(WARNING) << "Unable to set scratch metafile directory"; | 205 LOG(WARNING) << "Unable to set scratch metafile directory"; |
206 #if defined(OS_WIN) | 206 #if defined(OS_WIN) |
207 scoped_ptr<printing::NativeMetafile> metafile( | 207 scoped_ptr<printing::NativeMetafile> metafile( |
208 printing::NativeMetafileFactory::CreateMetafile()); | 208 printing::NativeMetafileFactory::CreateMetafile()); |
209 if (!metafile->CreateFromFile(metafile_path)) { | 209 if (!metafile->CreateFromFile(metafile_path)) { |
210 OnRenderPDFPagesToMetafileFailed(); | 210 OnRenderPDFPagesToMetafileFailed(); |
211 } else { | 211 } else { |
212 OnRenderPDFPagesToMetafileSucceeded(*metafile, | 212 OnRenderPDFPagesToMetafileSucceeded(*metafile, |
213 highest_rendered_page_number); | 213 highest_rendered_page_number); |
214 // Close it so that ScopedTempDir can delete the folder. | 214 // Close it so that ScopedTempDir can delete the folder. |
215 metafile->CloseEmf(); | 215 metafile->Close(); |
216 } | 216 } |
217 #endif // defined(OS_WIN) | 217 #endif // defined(OS_WIN) |
218 } | 218 } |
219 | 219 |
OLD | NEW |