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

Side by Side Diff: chrome/service/service_utility_process_host.cc

Issue 6611032: Unifying NativeMetafile class interface (as much as possible) for Linux, Mac, Win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restored pdf_ps_metafile_cairo.h class comment Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698