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

Side by Side Diff: third_party/WebKit/Source/platform/Logging.cpp

Issue 1845533002: Remove HTMLPlugin WTF logging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove utf8 conversions Created 4 years, 8 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 | « third_party/WebKit/Source/platform/Logging.h ('k') | no next file » | 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) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, 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 16 matching lines...) Expand all
27 27
28 #include "wtf/text/WTFString.h" 28 #include "wtf/text/WTFString.h"
29 29
30 #if !LOG_DISABLED 30 #if !LOG_DISABLED
31 31
32 namespace blink { 32 namespace blink {
33 33
34 WTFLogChannel LogFileAPI = { WTFLogChannelOff }; 34 WTFLogChannel LogFileAPI = { WTFLogChannelOff };
35 WTFLogChannel LogMedia = { WTFLogChannelOff }; 35 WTFLogChannel LogMedia = { WTFLogChannelOff };
36 WTFLogChannel LogNetwork = { WTFLogChannelOff }; 36 WTFLogChannel LogNetwork = { WTFLogChannelOff };
37 WTFLogChannel LogPlugins = { WTFLogChannelOff };
38 WTFLogChannel LogResourceLoading = { WTFLogChannelOff }; 37 WTFLogChannel LogResourceLoading = { WTFLogChannelOff };
39 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff }; 38 WTFLogChannel LogSQLDatabase = { WTFLogChannelOff };
40 WTFLogChannel LogStorageAPI = { WTFLogChannelOff }; 39 WTFLogChannel LogStorageAPI = { WTFLogChannelOff };
41 WTFLogChannel LogTimers = { WTFLogChannelOff }; 40 WTFLogChannel LogTimers = { WTFLogChannelOff };
42 41
43 WTFLogChannel* getChannelFromName(const String& channelName) 42 WTFLogChannel* getChannelFromName(const String& channelName)
44 { 43 {
45 if (!(channelName.length() >= 2)) 44 if (!(channelName.length() >= 2))
46 return 0; 45 return 0;
47 46
48 if (equalIgnoringCase(channelName, String("Media"))) 47 if (equalIgnoringCase(channelName, String("Media")))
49 return &LogMedia; 48 return &LogMedia;
50 49
51 if (equalIgnoringCase(channelName, String("Network"))) 50 if (equalIgnoringCase(channelName, String("Network")))
52 return &LogNetwork; 51 return &LogNetwork;
53 52
54 if (equalIgnoringCase(channelName, String("ResourceLoading"))) 53 if (equalIgnoringCase(channelName, String("ResourceLoading")))
55 return &LogResourceLoading; 54 return &LogResourceLoading;
56 55
57 if (equalIgnoringCase(channelName, String("Plugins")))
58 return &LogPlugins;
59
60 if (equalIgnoringCase(channelName, String("SQLDatabase"))) 56 if (equalIgnoringCase(channelName, String("SQLDatabase")))
61 return &LogSQLDatabase; 57 return &LogSQLDatabase;
62 58
63 if (equalIgnoringCase(channelName, String("StorageAPI"))) 59 if (equalIgnoringCase(channelName, String("StorageAPI")))
64 return &LogStorageAPI; 60 return &LogStorageAPI;
65 61
66 if (equalIgnoringCase(channelName, String("FileAPI"))) 62 if (equalIgnoringCase(channelName, String("FileAPI")))
67 return &LogFileAPI; 63 return &LogFileAPI;
68 64
69 if (equalIgnoringCase(channelName, String("Timers"))) 65 if (equalIgnoringCase(channelName, String("Timers")))
70 return &LogTimers; 66 return &LogTimers;
71 67
72 return 0; 68 return 0;
73 } 69 }
74 70
75 } 71 }
76 72
77 #endif // !LOG_DISABLED 73 #endif // !LOG_DISABLED
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/Logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698