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

Side by Side Diff: Source/core/page/DiagnosticLoggingKeys.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 years, 4 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 | « Source/core/page/ContentSecurityPolicy.cpp ('k') | Source/core/page/EventHandler.cpp » ('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 12 matching lines...) Expand all
23 * THE POSSIBILITY OF SUCH DAMAGE. 23 * THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/page/DiagnosticLoggingKeys.h" 27 #include "core/page/DiagnosticLoggingKeys.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 const String& DiagnosticLoggingKeys::mediaLoadedKey() 31 const String& DiagnosticLoggingKeys::mediaLoadedKey()
32 { 32 {
33 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("mediaLoaded"))); 33 DEFINE_STATIC_LOCAL(const String, key, ("mediaLoaded"));
34 return key; 34 return key;
35 } 35 }
36 36
37 const String& DiagnosticLoggingKeys::mediaLoadingFailedKey() 37 const String& DiagnosticLoggingKeys::mediaLoadingFailedKey()
38 { 38 {
39 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("mediaFailedLoading"))) ; 39 DEFINE_STATIC_LOCAL(const String, key, ("mediaFailedLoading"));
40 return key; 40 return key;
41 } 41 }
42 42
43 const String& DiagnosticLoggingKeys::pluginLoadedKey() 43 const String& DiagnosticLoggingKeys::pluginLoadedKey()
44 { 44 {
45 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pluginLoaded"))); 45 DEFINE_STATIC_LOCAL(const String, key, ("pluginLoaded"));
46 return key; 46 return key;
47 } 47 }
48 48
49 const String& DiagnosticLoggingKeys::pluginLoadingFailedKey() 49 const String& DiagnosticLoggingKeys::pluginLoadingFailedKey()
50 { 50 {
51 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pluginFailedLoading")) ); 51 DEFINE_STATIC_LOCAL(const String, key, ("pluginFailedLoading"));
52 return key; 52 return key;
53 } 53 }
54 54
55 const String& DiagnosticLoggingKeys::pageContainsPluginKey() 55 const String& DiagnosticLoggingKeys::pageContainsPluginKey()
56 { 56 {
57 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pageContainsPlugin"))) ; 57 DEFINE_STATIC_LOCAL(const String, key, ("pageContainsPlugin"));
58 return key; 58 return key;
59 } 59 }
60 60
61 const String& DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey() 61 const String& DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey()
62 { 62 {
63 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pageContainsAtLeastOne Plugin"))); 63 DEFINE_STATIC_LOCAL(const String, key, ("pageContainsAtLeastOnePlugin"));
64 return key; 64 return key;
65 } 65 }
66 66
67 const String& DiagnosticLoggingKeys::pageContainsMediaEngineKey() 67 const String& DiagnosticLoggingKeys::pageContainsMediaEngineKey()
68 { 68 {
69 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pageContainsMediaEngin e"))); 69 DEFINE_STATIC_LOCAL(const String, key, ("pageContainsMediaEngine"));
70 return key; 70 return key;
71 } 71 }
72 72
73 const String& DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey() 73 const String& DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey()
74 { 74 {
75 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pageContainsAtLeastOne MediaEngine"))); 75 DEFINE_STATIC_LOCAL(const String, key, ("pageContainsAtLeastOneMediaEngine") );
76 return key; 76 return key;
77 } 77 }
78 78
79 const String& DiagnosticLoggingKeys::passKey() 79 const String& DiagnosticLoggingKeys::passKey()
80 { 80 {
81 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("pass"))); 81 DEFINE_STATIC_LOCAL(const String, key, ("pass"));
82 return key; 82 return key;
83 } 83 }
84 84
85 const String& DiagnosticLoggingKeys::failKey() 85 const String& DiagnosticLoggingKeys::failKey()
86 { 86 {
87 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("fail"))); 87 DEFINE_STATIC_LOCAL(const String, key, ("fail"));
88 return key; 88 return key;
89 } 89 }
90 90
91 const String& DiagnosticLoggingKeys::noopKey() 91 const String& DiagnosticLoggingKeys::noopKey()
92 { 92 {
93 DEFINE_STATIC_LOCAL(const String, key, (ASCIILiteral("noop"))); 93 DEFINE_STATIC_LOCAL(const String, key, ("noop"));
94 return key; 94 return key;
95 } 95 }
96 96
97 } 97 }
OLDNEW
« no previous file with comments | « Source/core/page/ContentSecurityPolicy.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698