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

Unified Diff: third_party/WebKit/Source/core/page/PrintContext.cpp

Issue 2802903002: Move PrintBrowser from SPV2 to SPV1 (Closed)
Patch Set: Only call PrintContext::end() if we are exiting Print mode not PrintBrowser mode Created 3 years, 8 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: third_party/WebKit/Source/core/page/PrintContext.cpp
diff --git a/third_party/WebKit/Source/core/page/PrintContext.cpp b/third_party/WebKit/Source/core/page/PrintContext.cpp
index e88fd38599e162a4fd98c01cee87e5ed16616fcb..6999047c728ed8b1f90db2c9f3942d00a4fcf2e8 100644
--- a/third_party/WebKit/Source/core/page/PrintContext.cpp
+++ b/third_party/WebKit/Source/core/page/PrintContext.cpp
@@ -45,7 +45,7 @@ PrintContext::PrintContext(LocalFrame* frame)
: m_frame(frame), m_isPrinting(false), m_linkedDestinationsValid(false) {}
PrintContext::~PrintContext() {
- if (m_isPrinting)
+ if (m_isPrinting && !RuntimeEnabledFeatures::printBrowserEnabled())
pdr. 2017/04/10 00:24:34 Ditto here. I think we should remove the changes t
end();
}

Powered by Google App Engine
This is Rietveld 408576698