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

Side by Side Diff: printing/printed_document.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 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
« no previous file with comments | « printing/print_settings.cc ('k') | remoting/host/audio_capturer_linux.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/printed_document.h" 5 #include "printing/printed_document.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 19 matching lines...) Expand all
30 #include "printing/printed_page.h" 30 #include "printing/printed_page.h"
31 #include "printing/printed_pages_source.h" 31 #include "printing/printed_pages_source.h"
32 #include "printing/units.h" 32 #include "printing/units.h"
33 #include "ui/gfx/font.h" 33 #include "ui/gfx/font.h"
34 #include "ui/gfx/text_elider.h" 34 #include "ui/gfx/text_elider.h"
35 35
36 namespace printing { 36 namespace printing {
37 37
38 namespace { 38 namespace {
39 39
40 base::LazyInstance<base::FilePath> g_debug_dump_info = 40 base::LazyInstance<base::FilePath>::DestructorAtExit g_debug_dump_info =
41 LAZY_INSTANCE_INITIALIZER; 41 LAZY_INSTANCE_INITIALIZER;
42 42
43 void DebugDumpPageTask(const base::string16& doc_name, 43 void DebugDumpPageTask(const base::string16& doc_name,
44 const PrintedPage* page) { 44 const PrintedPage* page) {
45 if (g_debug_dump_info.Get().empty()) 45 if (g_debug_dump_info.Get().empty())
46 return; 46 return;
47 47
48 base::string16 filename = doc_name; 48 base::string16 filename = doc_name;
49 filename += 49 filename +=
50 base::ASCIIToUTF16(base::StringPrintf("_%04d", page->page_number())); 50 base::ASCIIToUTF16(base::StringPrintf("_%04d", page->page_number()));
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 #if defined(OS_ANDROID) 266 #if defined(OS_ANDROID)
267 // This function is not used on android. 267 // This function is not used on android.
268 void PrintedDocument::RenderPrintedPage(const PrintedPage& page, 268 void PrintedDocument::RenderPrintedPage(const PrintedPage& page,
269 PrintingContext* context) const { 269 PrintingContext* context) const {
270 NOTREACHED(); 270 NOTREACHED();
271 } 271 }
272 #endif 272 #endif
273 273
274 } // namespace printing 274 } // namespace printing
OLDNEW
« no previous file with comments | « printing/print_settings.cc ('k') | remoting/host/audio_capturer_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698