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

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

Issue 384543004: Get rid of DriveEntryKind. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed some temporary variables and IsHostedDocumentByFileExtension(). Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc ('k') | google_apis/BUILD.gn » ('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 (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/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_enumerator.h" 9 #include "base/files/file_enumerator.h"
10 #include "base/format_macros.h" 10 #include "base/format_macros.h"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
30 #include "chrome/common/url_constants.h" 30 #include "chrome/common/url_constants.h"
31 #include "content/public/browser/browser_thread.h" 31 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/web_ui.h" 32 #include "content/public/browser/web_ui.h"
33 #include "content/public/browser/web_ui_data_source.h" 33 #include "content/public/browser/web_ui_data_source.h"
34 #include "content/public/browser/web_ui_message_handler.h" 34 #include "content/public/browser/web_ui_message_handler.h"
35 #include "google_apis/drive/auth_service.h" 35 #include "google_apis/drive/auth_service.h"
36 #include "google_apis/drive/drive_api_parser.h" 36 #include "google_apis/drive/drive_api_parser.h"
37 #include "google_apis/drive/gdata_errorcode.h" 37 #include "google_apis/drive/gdata_errorcode.h"
38 #include "google_apis/drive/gdata_wapi_parser.h"
39 #include "google_apis/drive/time_util.h" 38 #include "google_apis/drive/time_util.h"
40 #include "grit/browser_resources.h" 39 #include "grit/browser_resources.h"
41 40
42 using content::BrowserThread; 41 using content::BrowserThread;
43 42
44 namespace chromeos { 43 namespace chromeos {
45 44
46 namespace { 45 namespace {
47 46
48 // Gets metadata of all files and directories in |root_path| 47 // Gets metadata of all files and directories in |root_path|
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost); 894 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost);
896 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS); 895 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS);
897 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS); 896 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS);
898 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML); 897 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML);
899 898
900 Profile* profile = Profile::FromWebUI(web_ui); 899 Profile* profile = Profile::FromWebUI(web_ui);
901 content::WebUIDataSource::Add(profile, source); 900 content::WebUIDataSource::Add(profile, source);
902 } 901 }
903 902
904 } // namespace chromeos 903 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend_v1/fake_api_util.cc ('k') | google_apis/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698