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

Unified Diff: content/browser/web_contents/aura/image_window_delegate.cc

Issue 417343003: Don't capture screenshots for in-page navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitepace Created 6 years, 5 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: content/browser/web_contents/aura/image_window_delegate.cc
diff --git a/content/browser/web_contents/aura/image_window_delegate.cc b/content/browser/web_contents/aura/image_window_delegate.cc
index 0b40c0f090569e899350d13df54827fd2f9e2f7f..ccfd2c5bcb9af9bc7915fe3f6cb9d57201919d78 100644
--- a/content/browser/web_contents/aura/image_window_delegate.cc
+++ b/content/browser/web_contents/aura/image_window_delegate.cc
@@ -66,7 +66,7 @@ void ImageWindowDelegate::OnCaptureLost() {
void ImageWindowDelegate::OnPaint(gfx::Canvas* canvas) {
if (image_.IsEmpty()) {
- canvas->DrawColor(SK_ColorGRAY);
+ canvas->DrawColor(SK_ColorWHITE);
sky 2014/07/25 22:08:06 Why are we changing colors?
mfomitchev 2014/07/25 22:29:15 Kuscher asked for this. Testing it out, I agree wi
sky 2014/07/25 22:44:49 Won't this impact *all* sites though? And won't it
mfomitchev 2014/07/25 23:09:58 Yes it would. I think it would look better for any
} else {
if (size_mismatch_)
canvas->DrawColor(SK_ColorWHITE);

Powered by Google App Engine
This is Rietveld 408576698