Commit 98f64871 authored by Nick Peterson's avatar Nick Peterson Committed by Commit Bot

Log when a successful screenshot is taken on ChromeOS

Bug: 854001
Change-Id: I7d463aae233fd9704b4e1af58e9a8e7596aa76f7
Reviewed-on: https://chromium-review.googlesource.com/1105504Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Reviewed-by: default avatarToni Barzic <tbarzic@chromium.org>
Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: Nick Peterson <nrpeter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568532}
parent 7b9c4ea5
......@@ -22,6 +22,7 @@
#include "base/metrics/user_metrics.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "base/syslog_logging.h"
#include "base/task_scheduler/post_task.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
......@@ -539,6 +540,10 @@ void ChromeScreenshotGrabber::OnScreenshotCompleted(
return;
}
#if defined(OS_CHROMEOS)
SYSLOG(INFO) << "Screenshot taken";
#endif
if (drive::util::IsUnderDriveMountPoint(screenshot_path)) {
drive::FileSystemInterface* file_system =
drive::util::GetFileSystemByProfile(GetProfile());
......
......@@ -6,6 +6,7 @@
#include "base/base64.h"
#include "base/strings/stringprintf.h"
#include "base/syslog_logging.h"
#include "content/public/browser/render_widget_host.h"
#include "content/public/browser/render_widget_host_view.h"
#include "content/public/browser/web_contents.h"
......@@ -54,6 +55,11 @@ WebContentsCaptureClient::CaptureResult WebContentsCaptureClient::CaptureAsync(
view->CopyFromSurface(gfx::Rect(), // Copy entire surface area.
gfx::Size(), // Result contains device-level detail.
std::move(callback));
#if defined(OS_CHROMEOS)
SYSLOG(INFO) << "Screenshot taken";
#endif
return OK;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment