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

Side by Side Diff: printing/pdf_metafile_skia.cc

Issue 8334007: Cleanup: Remove unneeded namespaces. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « printing/pdf_metafile_cg_mac_unittest.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "printing/pdf_metafile_skia.h" 5 #include "printing/pdf_metafile_skia.h"
6 6
7 #include "base/eintr_wrapper.h" 7 #include "base/eintr_wrapper.h"
8 #include "base/file_descriptor_posix.h" 8 #include "base/file_descriptor_posix.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/hash_tables.h" 10 #include "base/hash_tables.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 if (!pdf_doc.appendPage(data_->current_page_.get())) 242 if (!pdf_doc.appendPage(data_->current_page_.get()))
243 return NULL; 243 return NULL;
244 244
245 if (!pdf_doc.emitPDF(&pdf_stream)) 245 if (!pdf_doc.emitPDF(&pdf_stream))
246 return NULL; 246 return NULL;
247 247
248 SkAutoDataUnref data(pdf_stream.copyToData()); 248 SkAutoDataUnref data(pdf_stream.copyToData());
249 if (data.size() == 0) 249 if (data.size() == 0)
250 return NULL; 250 return NULL;
251 251
252 PdfMetafileSkia* metafile = new printing::PdfMetafileSkia; 252 PdfMetafileSkia* metafile = new PdfMetafileSkia;
253 metafile->InitFromData(data.bytes(), data.size()); 253 metafile->InitFromData(data.bytes(), data.size());
254 return metafile; 254 return metafile;
255 } 255 }
256 256
257 } // namespace printing 257 } // namespace printing
OLDNEW
« no previous file with comments | « printing/pdf_metafile_cg_mac_unittest.cc ('k') | printing/print_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698