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

Unified Diff: third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.cpp

Issue 2786673002: Separate ContentSettingsClient out from LocalFrameClient (Closed)
Patch Set: added class-level comment Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp b/third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.cpp
similarity index 95%
rename from third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
rename to third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.cpp
index c372838aac87c05ec645de62658cb44f5437a0f4..48c7fffca730e67c5810b61ef60ddb5a43b5e49b 100644
--- a/third_party/WebKit/Source/web/ContextFeaturesClientImpl.cpp
+++ b/third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.cpp
@@ -28,13 +28,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "web/ContextFeaturesClientImpl.h"
+#include "core/dom/ContextFeaturesClientImpl.h"
#include "core/dom/Document.h"
+#include "core/frame/ContentSettingsClient.h"
#include "platform/weborigin/SecurityOrigin.h"
-#include "public/web/WebContentSettingsClient.h"
-#include "public/web/WebDocument.h"
-#include "web/WebLocalFrameImpl.h"
namespace blink {
@@ -135,7 +133,7 @@ bool ContextFeaturesClientImpl::askIfIsEnabled(
Document* document,
ContextFeatures::FeatureType type,
bool defaultValue) {
- WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(document->frame());
+ LocalFrame* frame = document->frame();
if (!frame || !frame->contentSettingsClient())
return defaultValue;
« no previous file with comments | « third_party/WebKit/Source/core/dom/ContextFeaturesClientImpl.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698