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

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

Issue 2290753004: Finish changing chrome/ grit includes to use qualified paths. (Closed)
Patch Set: Rebase, fix new unqualified include Created 4 years, 3 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 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/strings/grit/ash_strings.h"
9 #include "ash/common/system/system_notifier.h" 10 #include "ash/common/system/system_notifier.h"
10 #include "ash/shell.h" 11 #include "ash/shell.h"
11 #include "base/base64.h" 12 #include "base/base64.h"
12 #include "base/bind.h" 13 #include "base/bind.h"
13 #include "base/callback.h" 14 #include "base/callback.h"
14 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
15 #include "base/i18n/time_formatting.h" 16 #include "base/i18n/time_formatting.h"
16 #include "base/macros.h" 17 #include "base/macros.h"
17 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
18 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
19 #include "build/build_config.h" 20 #include "build/build_config.h"
20 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
21 #include "chrome/browser/chromeos/drive/file_system_util.h" 22 #include "chrome/browser/chromeos/drive/file_system_util.h"
22 #include "chrome/browser/chromeos/file_manager/open_util.h" 23 #include "chrome/browser/chromeos/file_manager/open_util.h"
23 #include "chrome/browser/chromeos/note_taking_app_utils.h" 24 #include "chrome/browser/chromeos/note_taking_app_utils.h"
24 #include "chrome/browser/download/download_prefs.h" 25 #include "chrome/browser/download/download_prefs.h"
25 #include "chrome/browser/notifications/notification_ui_manager.h" 26 #include "chrome/browser/notifications/notification_ui_manager.h"
26 #include "chrome/browser/notifications/notifier_state_tracker.h" 27 #include "chrome/browser/notifications/notifier_state_tracker.h"
27 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" 28 #include "chrome/browser/notifications/notifier_state_tracker_factory.h"
28 #include "chrome/browser/platform_util.h" 29 #include "chrome/browser/platform_util.h"
29 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/browser/profiles/profile_manager.h" 31 #include "chrome/browser/profiles/profile_manager.h"
31 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
32 #include "chrome/grit/theme_resources.h" 33 #include "chrome/grit/theme_resources.h"
33 #include "chromeos/login/login_state.h" 34 #include "chromeos/login/login_state.h"
34 #include "components/drive/chromeos/file_system_interface.h" 35 #include "components/drive/chromeos/file_system_interface.h"
35 #include "components/prefs/pref_service.h" 36 #include "components/prefs/pref_service.h"
36 #include "content/public/browser/browser_thread.h" 37 #include "content/public/browser/browser_thread.h"
37 #include "content/public/browser/user_metrics.h" 38 #include "content/public/browser/user_metrics.h"
38 #include "grit/ash_strings.h"
39 #include "ui/base/clipboard/clipboard.h" 39 #include "ui/base/clipboard/clipboard.h"
40 #include "ui/base/clipboard/scoped_clipboard_writer.h" 40 #include "ui/base/clipboard/scoped_clipboard_writer.h"
41 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
42 #include "ui/base/resource/resource_bundle.h" 42 #include "ui/base/resource/resource_bundle.h"
43 #include "ui/strings/grit/ui_strings.h" 43 #include "ui/strings/grit/ui_strings.h"
44 44
45 namespace { 45 namespace {
46 46
47 const char kNotificationId[] = "screenshot"; 47 const char kNotificationId[] = "screenshot";
48 48
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 } 462 }
463 463
464 void ChromeScreenshotGrabber::SetProfileForTest(Profile* profile) { 464 void ChromeScreenshotGrabber::SetProfileForTest(Profile* profile) {
465 profile_for_test_ = profile; 465 profile_for_test_ = profile;
466 } 466 }
467 467
468 Profile* ChromeScreenshotGrabber::GetProfile() { 468 Profile* ChromeScreenshotGrabber::GetProfile() {
469 return profile_for_test_ ? profile_for_test_ 469 return profile_for_test_ ? profile_for_test_
470 : ProfileManager::GetActiveUserProfile(); 470 : ProfileManager::GetActiveUserProfile();
471 } 471 }
OLDNEW
« no previous file with comments | « chrome/browser/resources_util_unittest.cc ('k') | chrome/browser/ui/ash/launcher/extension_launcher_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698