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

Side by Side Diff: chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.cc

Issue 2412963003: Replace CHROMEOS_SYSLOG logs with SYSLOG logs so remote command related (Closed)
Patch Set: Created 4 years, 2 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.h" 5 #include "chrome/browser/chromeos/policy/remote_commands/screenshot_delegate.h"
6 6
7 #include "base/chromeos/logging.h"
8 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/syslog_logging.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 11 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
12 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h" 12 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
13 #include "chrome/browser/chromeos/policy/status_uploader.h" 13 #include "chrome/browser/chromeos/policy/status_uploader.h"
14 #include "chrome/browser/chromeos/policy/upload_job_impl.h" 14 #include "chrome/browser/chromeos/policy/upload_job_impl.h"
15 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h" 15 #include "chrome/browser/chromeos/settings/device_oauth2_token_service.h"
16 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h " 16 #include "chrome/browser/chromeos/settings/device_oauth2_token_service_factory.h "
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 18
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 const GURL& upload_url, 52 const GURL& upload_url,
53 UploadJob::Delegate* delegate) { 53 UploadJob::Delegate* delegate) {
54 chromeos::DeviceOAuth2TokenService* device_oauth2_token_service = 54 chromeos::DeviceOAuth2TokenService* device_oauth2_token_service =
55 chromeos::DeviceOAuth2TokenServiceFactory::Get(); 55 chromeos::DeviceOAuth2TokenServiceFactory::Get();
56 56
57 scoped_refptr<net::URLRequestContextGetter> system_request_context = 57 scoped_refptr<net::URLRequestContextGetter> system_request_context =
58 g_browser_process->system_request_context(); 58 g_browser_process->system_request_context();
59 std::string robot_account_id = 59 std::string robot_account_id =
60 device_oauth2_token_service->GetRobotAccountId(); 60 device_oauth2_token_service->GetRobotAccountId();
61 61
62 CHROMEOS_SYSLOG(WARNING) << "Creating upload job for screenshot"; 62 SYSLOG(INFO) << "Creating upload job for screenshot";
63 return std::unique_ptr<UploadJob>(new UploadJobImpl( 63 return std::unique_ptr<UploadJob>(new UploadJobImpl(
64 upload_url, robot_account_id, device_oauth2_token_service, 64 upload_url, robot_account_id, device_oauth2_token_service,
65 system_request_context, delegate, 65 system_request_context, delegate,
66 base::WrapUnique(new UploadJobImpl::RandomMimeBoundaryGenerator), 66 base::WrapUnique(new UploadJobImpl::RandomMimeBoundaryGenerator),
67 base::ThreadTaskRunnerHandle::Get())); 67 base::ThreadTaskRunnerHandle::Get()));
68 } 68 }
69 69
70 void ScreenshotDelegate::StoreScreenshot( 70 void ScreenshotDelegate::StoreScreenshot(
71 const ui::GrabWindowSnapshotAsyncPNGCallback& callback, 71 const ui::GrabWindowSnapshotAsyncPNGCallback& callback,
72 scoped_refptr<base::RefCountedBytes> png_data) { 72 scoped_refptr<base::RefCountedBytes> png_data) {
73 callback.Run(png_data); 73 callback.Run(png_data);
74 } 74 }
75 75
76 } // namespace policy 76 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698