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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "ash/common/system/system_notifier.h" | |
10 #include "ash/shell.h" | 9 #include "ash/shell.h" |
11 #include "ash/strings/grit/ash_strings.h" | 10 #include "ash/strings/grit/ash_strings.h" |
| 11 #include "ash/system/system_notifier.h" |
12 #include "base/base64.h" | 12 #include "base/base64.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/callback.h" | 14 #include "base/callback.h" |
15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
16 #include "base/i18n/time_formatting.h" | 16 #include "base/i18n/time_formatting.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
20 #include "base/threading/sequenced_worker_pool.h" | 20 #include "base/threading/sequenced_worker_pool.h" |
21 #include "build/build_config.h" | 21 #include "build/build_config.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 } | 466 } |
467 | 467 |
468 void ChromeScreenshotGrabber::SetProfileForTest(Profile* profile) { | 468 void ChromeScreenshotGrabber::SetProfileForTest(Profile* profile) { |
469 profile_for_test_ = profile; | 469 profile_for_test_ = profile; |
470 } | 470 } |
471 | 471 |
472 Profile* ChromeScreenshotGrabber::GetProfile() { | 472 Profile* ChromeScreenshotGrabber::GetProfile() { |
473 return profile_for_test_ ? profile_for_test_ | 473 return profile_for_test_ ? profile_for_test_ |
474 : ProfileManager::GetActiveUserProfile(); | 474 : ProfileManager::GetActiveUserProfile(); |
475 } | 475 } |
OLD | NEW |