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

Unified Diff: components/test_runner/test_runner_for_specific_view.cc

Issue 2085153002: Adjust test expectations for infinite-size images. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: small refactor Created 4 years, 6 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
« no previous file with comments | « no previous file | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/test_runner_for_specific_view.cc
diff --git a/components/test_runner/test_runner_for_specific_view.cc b/components/test_runner/test_runner_for_specific_view.cc
index 7b9d08847be3dfa21cd7ac25e0ae4bdd050c5c91..a314217d0d9962a4acb446e6c89096ffa769ad8d 100644
--- a/components/test_runner/test_runner_for_specific_view.cc
+++ b/components/test_runner/test_runner_for_specific_view.cc
@@ -368,7 +368,14 @@ void TestRunnerForSpecificView::SetBackingScaleFactor(
double value,
v8::Local<v8::Function> callback) {
delegate()->SetDeviceScaleFactor(value);
- PostV8Callback(callback);
+
+ // TODO(oshima): remove this callback argument when all platforms are migrated
+ // to use-zoom-for-dsf by default
+ v8::UniquePersistent<v8::Function> global_callback(blink::mainThreadIsolate(),
+ callback);
+ v8::Local<v8::Value> arg = v8::Boolean::New(
+ blink::mainThreadIsolate(), delegate()->IsUseZoomForDSFEnabled());
+ PostV8CallbackWithArgs(std::move(global_callback), 1, &arg);
}
void TestRunnerForSpecificView::EnableUseZoomForDSF(
« no previous file with comments | « no previous file | components/test_runner/web_test_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698