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

Side by Side Diff: Source/WebCore/page/PageConsole.cpp

Issue 13861033: Remove Apple's unused implementation of private browsing from WebCore (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Repatch to ToT Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/WebCore/page/Page.cpp ('k') | Source/WebCore/page/Settings.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) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return; 90 return;
91 91
92 if (callStack) 92 if (callStack)
93 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy pe, level, message, callStack, requestIdentifier); 93 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy pe, level, message, callStack, requestIdentifier);
94 else 94 else
95 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy pe, level, message, url, lineNumber, state, requestIdentifier); 95 InspectorInstrumentation::addMessageToConsole(page, source, LogMessageTy pe, level, message, url, lineNumber, state, requestIdentifier);
96 96
97 if (source == CSSMessageSource) 97 if (source == CSSMessageSource)
98 return; 98 return;
99 99
100 if (page->settings()->privateBrowsingEnabled())
101 return;
102
103 page->chrome()->client()->addMessageToConsole(source, level, message, lineNu mber, url); 100 page->chrome()->client()->addMessageToConsole(source, level, message, lineNu mber, url);
104 } 101 }
105 102
106 // static 103 // static
107 void PageConsole::mute() 104 void PageConsole::mute()
108 { 105 {
109 muteCount++; 106 muteCount++;
110 } 107 }
111 108
112 // static 109 // static
113 void PageConsole::unmute() 110 void PageConsole::unmute()
114 { 111 {
115 ASSERT(muteCount > 0); 112 ASSERT(muteCount > 0);
116 muteCount--; 113 muteCount--;
117 } 114 }
118 115
119 } // namespace WebCore 116 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/page/Page.cpp ('k') | Source/WebCore/page/Settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698