OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/ash/chrome_screenshot_grabber.h" | 5 #include "chrome/browser/ui/ash/chrome_screenshot_grabber.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/system_notifier.h" | 8 #include "ash/system/system_notifier.h" |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "content/public/browser/user_metrics.h" | 25 #include "content/public/browser/user_metrics.h" |
26 #include "grit/ash_strings.h" | 26 #include "grit/ash_strings.h" |
27 #include "grit/theme_resources.h" | 27 #include "grit/theme_resources.h" |
28 #include "ui/base/clipboard/clipboard.h" | 28 #include "ui/base/clipboard/clipboard.h" |
29 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 29 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
32 #include "ui/strings/grit/ui_strings.h" | 32 #include "ui/strings/grit/ui_strings.h" |
33 | 33 |
34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
| 35 #include "chrome/browser/chromeos/drive/file_system_core_util.h" |
35 #include "chrome/browser/chromeos/drive/file_system_interface.h" | 36 #include "chrome/browser/chromeos/drive/file_system_interface.h" |
36 #include "chrome/browser/chromeos/drive/file_system_util.h" | 37 #include "chrome/browser/chromeos/drive/file_system_util.h" |
37 #include "chrome/browser/chromeos/file_manager/open_util.h" | 38 #include "chrome/browser/chromeos/file_manager/open_util.h" |
38 #include "chrome/browser/notifications/desktop_notification_service.h" | 39 #include "chrome/browser/notifications/desktop_notification_service.h" |
39 #include "chrome/browser/notifications/desktop_notification_service_factory.h" | 40 #include "chrome/browser/notifications/desktop_notification_service_factory.h" |
40 #include "chromeos/login/login_state.h" | 41 #include "chromeos/login/login_state.h" |
41 #endif | 42 #endif |
42 | 43 |
43 namespace { | 44 namespace { |
44 | 45 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 #endif | 427 #endif |
427 | 428 |
428 void ChromeScreenshotGrabber::SetProfileForTest(Profile* profile) { | 429 void ChromeScreenshotGrabber::SetProfileForTest(Profile* profile) { |
429 profile_for_test_ = profile; | 430 profile_for_test_ = profile; |
430 } | 431 } |
431 | 432 |
432 Profile* ChromeScreenshotGrabber::GetProfile() { | 433 Profile* ChromeScreenshotGrabber::GetProfile() { |
433 return profile_for_test_ ? profile_for_test_ | 434 return profile_for_test_ ? profile_for_test_ |
434 : ProfileManager::GetActiveUserProfile(); | 435 : ProfileManager::GetActiveUserProfile(); |
435 } | 436 } |
OLD | NEW |