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

Unified Diff: chrome/browser/ui/views/ash/screenshot_taker.cc

Issue 9802035: Revert "Close the screenshot flash effect before the screenshot task is actually executed." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/ash/screenshot_taker.cc
diff --git a/chrome/browser/ui/views/ash/screenshot_taker.cc b/chrome/browser/ui/views/ash/screenshot_taker.cc
index f43292fd4a9984e4f889d100664a61b222fdf5c6..1f874f1be47b8e454461b54dbe81d69f0ef75a33 100644
--- a/chrome/browser/ui/views/ash/screenshot_taker.cc
+++ b/chrome/browser/ui/views/ash/screenshot_taker.cc
@@ -117,9 +117,7 @@ void ScreenshotTaker::HandleTakeScreenshot(aura::Window* window) {
void ScreenshotTaker::CloseVisualFeedbackLayer(const base::Closure& task) {
visual_feedback_layer_.reset();
- // Hide the visual feedback immediately because |task| may take a long time
- // to finish.
- MessageLoopForUI::current()->PostTask(FROM_HERE, task);
+ task.Run();
}
void ScreenshotTaker::DisplayVisualFeedback(const gfx::Rect& rect,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698