commit | 382a596abf7cbc3ef3c77398d25ff5062487e561 | [log] [tgz] |
---|---|---|
author | Dan Elphick <[email protected]> | Fri Jul 27 13:34:04 2018 |
committer | Commit Bot <[email protected]> | Fri Jul 27 13:34:04 2018 |
tree | 48b10f03de8fb7b4b205e007bbe90ed5bc3099ea | |
parent | 14771d4df09bb73a5440b052ea25481bbbdfbe05 [diff] [blame] |
[cleanup] Fix uses of deprecated *Value methods in content_shell Instead of the deprecated argumentless Int32Value and BooleanValue functions, it now uses the Context versions which return MaybeLocals. Since this is for testing, we just force the results to their respective types and crash if not possible. Change-Id: I4a1b83640bdd64e3d7b81c5e21e1c8e0e89eb900 Reviewed-on: https://chromium-review.googlesource.com/1151987 Reviewed-by: Peter Beverloo <[email protected]> Commit-Queue: Dan Elphick <[email protected]> Cr-Commit-Position: refs/heads/master@{#578619}
diff --git a/content/shell/test_runner/test_runner.h b/content/shell/test_runner/test_runner.h index ee22feb..767d61a 100644 --- a/content/shell/test_runner/test_runner.h +++ b/content/shell/test_runner/test_runner.h
@@ -285,7 +285,7 @@ void SetXSSAuditorEnabled(bool enabled); void SetAllowUniversalAccessFromFileURLs(bool allow); void SetAllowFileAccessFromFileURLs(bool allow); - void OverridePreference(const std::string& key, v8::Local<v8::Value> value); + void OverridePreference(gin::Arguments* arguments); // Modify accept_languages in RendererPreferences. void SetAcceptLanguages(const std::string& accept_languages);