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

Unified Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc

Issue 10817018: gdata: First cut at implementing a debug console for Drive support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: polish Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
diff --git a/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3706c2e861686d41838c780f88e06e5dc047c7ac
--- /dev/null
+++ b/chrome/browser/ui/webui/chromeos/drive_internals_ui.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
+
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
+#include "chrome/common/url_constants.h"
+#include "content/public/browser/web_ui.h"
+#include "grit/browser_resources.h"
+
+namespace chromeos {
+
+DriveInternalsUI::DriveInternalsUI(content::WebUI* web_ui)
+ : WebUIController(web_ui) {
+ ChromeWebUIDataSource* source =
+ new ChromeWebUIDataSource(chrome::kChromeUIDriveInternalsHost);
+ source->add_resource_path("drive_internals.js", IDR_DRIVE_INTERNALS_JS);
+ source->set_default_resource(IDR_DRIVE_INTERNALS_HTML);
+
+ Profile* profile = Profile::FromWebUI(web_ui);
+ ChromeURLDataManager::AddDataSource(profile, source);
+}
+
+} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698