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

Side by Side Diff: third_party/WebKit/Source/wtf/FilePrintStream.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 | « third_party/WebKit/Source/wtf/DequeTest.cpp ('k') | third_party/WebKit/Source/wtf/Functional.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 27 matching lines...) Expand all
38 return; 38 return;
39 fclose(m_file); 39 fclose(m_file);
40 } 40 }
41 41
42 std::unique_ptr<FilePrintStream> FilePrintStream::open(const char* filename, 42 std::unique_ptr<FilePrintStream> FilePrintStream::open(const char* filename,
43 const char* mode) { 43 const char* mode) {
44 FILE* file = fopen(filename, mode); 44 FILE* file = fopen(filename, mode);
45 if (!file) 45 if (!file)
46 return std::unique_ptr<FilePrintStream>(); 46 return std::unique_ptr<FilePrintStream>();
47 47
48 return makeUnique<FilePrintStream>(file); 48 return WTF::makeUnique<FilePrintStream>(file);
49 } 49 }
50 50
51 void FilePrintStream::vprintf(const char* format, va_list argList) { 51 void FilePrintStream::vprintf(const char* format, va_list argList) {
52 vfprintf(m_file, format, argList); 52 vfprintf(m_file, format, argList);
53 } 53 }
54 54
55 void FilePrintStream::flush() { 55 void FilePrintStream::flush() {
56 fflush(m_file); 56 fflush(m_file);
57 } 57 }
58 58
59 } // namespace WTF 59 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/DequeTest.cpp ('k') | third_party/WebKit/Source/wtf/Functional.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698