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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1530393003: WIP: Move 'X-Frame-Options' checking to the browser. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/security/xfo_throttle.h » ('j') | chrome/browser/security/xfo_throttle.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index e0ef5f7f4d4d93b02f8326e017d0cfaa6f1a8e49..bcf073ed6adc215265e1aff559354451430024d8 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -67,6 +67,7 @@
#include "chrome/browser/search/instant_service_factory.h"
#include "chrome/browser/search/search.h"
#include "chrome/browser/search_engines/search_provider_install_state_message_filter.h"
+#include "chrome/browser/security/xfo_throttle.h"
#include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
#include "chrome/browser/speech/tts_controller.h"
#include "chrome/browser/speech/tts_message_filter.h"
@@ -2721,6 +2722,11 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
}
#endif
+ scoped_ptr<content::NavigationThrottle> xfo_throttle =
+ XFOThrottle::MaybeCreateThrottleFor(handle);
+ if (xfo_throttle)
+ throttles.push_back(xfo_throttle.Pass());
+
return throttles.Pass();
}
« no previous file with comments | « no previous file | chrome/browser/security/xfo_throttle.h » ('j') | chrome/browser/security/xfo_throttle.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698