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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 1737693002: Allow command-line arguments to override EF public key (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix use-after-free due to StringPiece shared state Created 4 years, 10 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: 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 b85bffd4f607d443c7ec415e9501b7435d365165..2899b776da60e0327171607ade07397ceb5f1519 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -51,6 +51,7 @@
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.h"
#include "chrome/browser/notifications/platform_notification_service_impl.h"
+#include "chrome/browser/origin_trials/origin_trial_controller.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/prerender/prerender_final_status.h"
#include "chrome/browser/prerender/prerender_manager.h"
@@ -1587,6 +1588,8 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
MaybeAppendBlinkSettingsSwitchForFieldTrial(
browser_command_line, command_line);
+ OriginTrialController::UpdateCommandLineFromFieldTrials(command_line);
+
// Please keep this in alphabetical order.
static const char* const kSwitchNames[] = {
#if defined(OS_ANDROID)
@@ -1639,6 +1642,7 @@ void ChromeContentBrowserClient::AppendExtraCommandLineSwitches(
#endif
switches::kJavaScriptHarmony,
switches::kMessageLoopHistogrammer,
+ switches::kOriginTrialPublicKey,
switches::kPpapiFlashArgs,
switches::kPpapiFlashPath,
switches::kPpapiFlashVersion,

Powered by Google App Engine
This is Rietveld 408576698