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

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

Issue 1192493003: Move browser-agnostic code from file_system_util to file_system_core_util. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drive-prefservice
Patch Set: Rebasing... Created 5 years, 5 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
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_installer.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698