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

Side by Side Diff: third_party/WebKit/Source/core/testing/InternalSettings.cpp

Issue 2184883002: Remove LinkHeader runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 settings()->setImageAnimationPolicy(ImageAnimationPolicyNoAnimation); 464 settings()->setImageAnimationPolicy(ImageAnimationPolicyNoAnimation);
465 else 465 else
466 exceptionState.throwDOMException(SyntaxError, "The image animation polic y provided ('" + policy + "') is invalid."); 466 exceptionState.throwDOMException(SyntaxError, "The image animation polic y provided ('" + policy + "') is invalid.");
467 } 467 }
468 468
469 void InternalSettings::setScrollTopLeftInteropEnabled(bool enabled) 469 void InternalSettings::setScrollTopLeftInteropEnabled(bool enabled)
470 { 470 {
471 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(enabled); 471 RuntimeEnabledFeatures::setScrollTopLeftInteropEnabled(enabled);
472 } 472 }
473 473
474 void InternalSettings::setLinkHeaderEnabled(bool enabled)
475 {
476 RuntimeEnabledFeatures::setLinkHeaderEnabled(enabled);
477 }
478
479 void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep tionState) 474 void InternalSettings::setDnsPrefetchLogging(bool enabled, ExceptionState& excep tionState)
480 { 475 {
481 InternalSettingsGuardForSettings(); 476 InternalSettingsGuardForSettings();
482 settings()->setLogDnsPrefetchAndPreconnect(enabled); 477 settings()->setLogDnsPrefetchAndPreconnect(enabled);
483 } 478 }
484 479
485 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception State) 480 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception State)
486 { 481 {
487 InternalSettingsGuardForSettings(); 482 InternalSettingsGuardForSettings();
488 settings()->setLogPreload(enabled); 483 settings()->setLogPreload(enabled);
489 } 484 }
490 485
491 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState& exceptionState) 486 void InternalSettings::setCompositorWorkerEnabled(bool enabled, ExceptionState& exceptionState)
492 { 487 {
493 InternalSettingsGuardForSettings(); 488 InternalSettingsGuardForSettings();
494 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled); 489 RuntimeEnabledFeatures::setCompositorWorkerEnabled(enabled);
495 } 490 }
496 491
497 } // namespace blink 492 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/InternalSettings.h ('k') | third_party/WebKit/Source/core/testing/InternalSettings.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698