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

Side by Side Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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/webui/chromeos/drive_internals_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_enumerator.h" 8 #include "base/files/file_enumerator.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
11 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/prefs/pref_service.h" 14 #include "base/prefs/pref_service.h"
15 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
16 #include "base/sys_info.h" 16 #include "base/sys_info.h"
17 #include "chrome/browser/chromeos/drive/debug_info_collector.h" 17 #include "chrome/browser/chromeos/drive/debug_info_collector.h"
18 #include "chrome/browser/chromeos/drive/drive.pb.h" 18 #include "chrome/browser/chromeos/drive/drive.pb.h"
19 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 19 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
20 #include "chrome/browser/chromeos/drive/drive_pref_names.h" 20 #include "chrome/browser/chromeos/drive/drive_pref_names.h"
21 #include "chrome/browser/chromeos/drive/file_system_util.h" 21 #include "chrome/browser/chromeos/drive/file_system_util.h"
22 #include "chrome/browser/chromeos/drive/job_list.h" 22 #include "chrome/browser/chromeos/drive/job_list.h"
23 #include "chrome/browser/chromeos/file_manager/path_util.h" 23 #include "chrome/browser/chromeos/file_manager/path_util.h"
24 #include "chrome/browser/drive/drive_api_util.h"
25 #include "chrome/browser/drive/drive_notification_manager.h"
26 #include "chrome/browser/drive/drive_notification_manager_factory.h" 24 #include "chrome/browser/drive/drive_notification_manager_factory.h"
27 #include "chrome/browser/drive/drive_service_interface.h"
28 #include "chrome/browser/drive/event_logger.h"
29 #include "chrome/browser/profiles/profile.h" 25 #include "chrome/browser/profiles/profile.h"
30 #include "chrome/common/pref_names.h" 26 #include "chrome/common/pref_names.h"
31 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
28 #include "components/drive/drive_api_util.h"
29 #include "components/drive/drive_notification_manager.h"
30 #include "components/drive/event_logger.h"
31 #include "components/drive/service/drive_service_interface.h"
32 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
33 #include "content/public/browser/web_ui.h" 33 #include "content/public/browser/web_ui.h"
34 #include "content/public/browser/web_ui_data_source.h" 34 #include "content/public/browser/web_ui_data_source.h"
35 #include "content/public/browser/web_ui_message_handler.h" 35 #include "content/public/browser/web_ui_message_handler.h"
36 #include "google_apis/drive/auth_service.h" 36 #include "google_apis/drive/auth_service.h"
37 #include "google_apis/drive/drive_api_error_codes.h" 37 #include "google_apis/drive/drive_api_error_codes.h"
38 #include "google_apis/drive/drive_api_parser.h" 38 #include "google_apis/drive/drive_api_parser.h"
39 #include "google_apis/drive/time_util.h" 39 #include "google_apis/drive/time_util.h"
40 #include "grit/browser_resources.h" 40 #include "grit/browser_resources.h"
41 41
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost); 894 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost);
895 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS); 895 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS);
896 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS); 896 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS);
897 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML); 897 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML);
898 898
899 Profile* profile = Profile::FromWebUI(web_ui); 899 Profile* profile = Profile::FromWebUI(web_ui);
900 content::WebUIDataSource::Add(profile, source); 900 content::WebUIDataSource::Add(profile, source);
901 } 901 }
902 902
903 } // namespace chromeos 903 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/DEPS ('k') | chrome/browser/ui/webui/sync_file_system_internals/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698