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

Side by Side Diff: chrome/browser/ui/ash/screenshot_taker.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/screenshot_taker.h" 5 #include "chrome/browser/ui/ash/screenshot_taker.h"
6 6
7 #include <climits> 7 #include <climits>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 27 matching lines...) Expand all
38 #include "ui/base/clipboard/scoped_clipboard_writer.h" 38 #include "ui/base/clipboard/scoped_clipboard_writer.h"
39 #include "ui/base/l10n/l10n_util.h" 39 #include "ui/base/l10n/l10n_util.h"
40 #include "ui/base/resource/resource_bundle.h" 40 #include "ui/base/resource/resource_bundle.h"
41 #include "ui/gfx/image/image.h" 41 #include "ui/gfx/image/image.h"
42 #include "ui/snapshot/snapshot.h" 42 #include "ui/snapshot/snapshot.h"
43 43
44 #if defined(OS_CHROMEOS) 44 #if defined(OS_CHROMEOS)
45 #include "chrome/browser/chromeos/drive/file_system_interface.h" 45 #include "chrome/browser/chromeos/drive/file_system_interface.h"
46 #include "chrome/browser/chromeos/drive/file_system_util.h" 46 #include "chrome/browser/chromeos/drive/file_system_util.h"
47 #include "chrome/browser/chromeos/file_manager/open_util.h" 47 #include "chrome/browser/chromeos/file_manager/open_util.h"
48 #include "chrome/browser/chromeos/login/users/user_manager.h"
49 #include "chrome/browser/notifications/desktop_notification_service.h" 48 #include "chrome/browser/notifications/desktop_notification_service.h"
50 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 49 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
51 #include "chromeos/login/login_state.h" 50 #include "chromeos/login/login_state.h"
52 #endif 51 #endif
53 52
54 namespace { 53 namespace {
55 // The minimum interval between two screenshot commands. It has to be 54 // The minimum interval between two screenshot commands. It has to be
56 // more than 1000 to prevent the conflict of filenames. 55 // more than 1000 to prevent the conflict of filenames.
57 const int kScreenshotMinimumIntervalInMS = 1000; 56 const int kScreenshotMinimumIntervalInMS = 1000;
58 57
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 626 }
628 627
629 void ScreenshotTaker::SetScreenshotBasenameForTest( 628 void ScreenshotTaker::SetScreenshotBasenameForTest(
630 const std::string& basename) { 629 const std::string& basename) {
631 screenshot_basename_for_test_ = basename; 630 screenshot_basename_for_test_ = basename;
632 } 631 }
633 632
634 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) { 633 void ScreenshotTaker::SetScreenshotProfileForTest(Profile* profile) {
635 profile_for_test_ = profile; 634 profile_for_test_ = profile;
636 } 635 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698