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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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/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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_util.h" 9 #include "base/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/stringprintf.h" 15 #include "base/stringprintf.h"
15 #include "base/sys_info.h" 16 #include "base/sys_info.h"
16 #include "chrome/browser/chromeos/drive/drive.pb.h" 17 #include "chrome/browser/chromeos/drive/drive.pb.h"
17 #include "chrome/browser/chromeos/drive/drive_cache.h" 18 #include "chrome/browser/chromeos/drive/drive_cache.h"
18 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h" 19 #include "chrome/browser/chromeos/drive/drive_file_system_interface.h"
19 #include "chrome/browser/chromeos/drive/drive_resource_metadata.h" 20 #include "chrome/browser/chromeos/drive/drive_resource_metadata.h"
20 #include "chrome/browser/chromeos/drive/drive_system_service.h" 21 #include "chrome/browser/chromeos/drive/drive_system_service.h"
21 #include "chrome/browser/chromeos/drive/event_logger.h" 22 #include "chrome/browser/chromeos/drive/event_logger.h"
22 #include "chrome/browser/google_apis/auth_service.h" 23 #include "chrome/browser/google_apis/auth_service.h"
23 #include "chrome/browser/google_apis/drive_api_parser.h" 24 #include "chrome/browser/google_apis/drive_api_parser.h"
24 #include "chrome/browser/google_apis/drive_api_util.h" 25 #include "chrome/browser/google_apis/drive_api_util.h"
25 #include "chrome/browser/google_apis/drive_service_interface.h" 26 #include "chrome/browser/google_apis/drive_service_interface.h"
26 #include "chrome/browser/google_apis/drive_switches.h" 27 #include "chrome/browser/google_apis/drive_switches.h"
27 #include "chrome/browser/google_apis/gdata_errorcode.h" 28 #include "chrome/browser/google_apis/gdata_errorcode.h"
28 #include "chrome/browser/google_apis/gdata_wapi_parser.h" 29 #include "chrome/browser/google_apis/gdata_wapi_parser.h"
29 #include "chrome/browser/google_apis/time_util.h" 30 #include "chrome/browser/google_apis/time_util.h"
30 #include "chrome/browser/prefs/pref_service.h"
31 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/common/chrome_switches.h" 32 #include "chrome/common/chrome_switches.h"
33 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
34 #include "chrome/common/url_constants.h" 34 #include "chrome/common/url_constants.h"
35 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
36 #include "content/public/browser/web_ui.h" 36 #include "content/public/browser/web_ui.h"
37 #include "content/public/browser/web_ui_data_source.h" 37 #include "content/public/browser/web_ui_data_source.h"
38 #include "content/public/browser/web_ui_message_handler.h" 38 #include "content/public/browser/web_ui_message_handler.h"
39 #include "grit/browser_resources.h" 39 #include "grit/browser_resources.h"
40 40
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost); 710 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost);
711 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS); 711 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS);
712 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS); 712 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS);
713 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML); 713 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML);
714 714
715 Profile* profile = Profile::FromWebUI(web_ui); 715 Profile* profile = Profile::FromWebUI(web_ui);
716 content::WebUIDataSource::Add(profile, source); 716 content::WebUIDataSource::Add(profile, source);
717 } 717 }
718 718
719 } // namespace chromeos 719 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc ('k') | chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698