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

Side by Side Diff: components/proximity_auth/webui/proximity_auth_ui.cc

Issue 1135293002: Hook up PA_LOG() logs to chrome://proximity-auth WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stop using release() Created 5 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/proximity_auth/webui/proximity_auth_ui.h" 5 #include "components/proximity_auth/webui/proximity_auth_ui.h"
6 6
7 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h" 7 #include "components/proximity_auth/webui/proximity_auth_webui_handler.h"
8 #include "components/proximity_auth/webui/url_constants.h" 8 #include "components/proximity_auth/webui/url_constants.h"
9 #include "content/public/browser/browser_context.h" 9 #include "content/public/browser/browser_context.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 15 matching lines...) Expand all
26 source->AddResourcePath("content-panel.js", 26 source->AddResourcePath("content-panel.js",
27 IDR_PROXIMITY_AUTH_CONTENT_PANEL_JS); 27 IDR_PROXIMITY_AUTH_CONTENT_PANEL_JS);
28 source->AddResourcePath("log-panel.html", IDR_PROXIMITY_AUTH_LOG_PANEL_HTML); 28 source->AddResourcePath("log-panel.html", IDR_PROXIMITY_AUTH_LOG_PANEL_HTML);
29 source->AddResourcePath("log-panel.js", IDR_PROXIMITY_AUTH_LOG_PANEL_JS); 29 source->AddResourcePath("log-panel.js", IDR_PROXIMITY_AUTH_LOG_PANEL_JS);
30 source->AddResourcePath("local-state.html", 30 source->AddResourcePath("local-state.html",
31 IDR_PROXIMITY_AUTH_LOCAL_STATE_HTML); 31 IDR_PROXIMITY_AUTH_LOCAL_STATE_HTML);
32 source->AddResourcePath("local-state.js", IDR_PROXIMITY_AUTH_LOCAL_STATE_JS); 32 source->AddResourcePath("local-state.js", IDR_PROXIMITY_AUTH_LOCAL_STATE_JS);
33 source->AddResourcePath("device-list.html", 33 source->AddResourcePath("device-list.html",
34 IDR_PROXIMITY_AUTH_DEVICE_LIST_HTML); 34 IDR_PROXIMITY_AUTH_DEVICE_LIST_HTML);
35 source->AddResourcePath("device-list.js", IDR_PROXIMITY_AUTH_DEVICE_LIST_JS); 35 source->AddResourcePath("device-list.js", IDR_PROXIMITY_AUTH_DEVICE_LIST_JS);
36 source->AddResourcePath("log-buffer.html",
37 IDR_PROXIMITY_AUTH_LOG_BUFFER_HTML);
38 source->AddResourcePath("log-buffer.js", IDR_PROXIMITY_AUTH_LOG_BUFFER_JS);
36 39
37 content::BrowserContext* browser_context = 40 content::BrowserContext* browser_context =
38 web_ui->GetWebContents()->GetBrowserContext(); 41 web_ui->GetWebContents()->GetBrowserContext();
39 content::WebUIDataSource::Add(browser_context, source); 42 content::WebUIDataSource::Add(browser_context, source);
40 web_ui->AddMessageHandler(new ProximityAuthWebUIHandler()); 43 web_ui->AddMessageHandler(new ProximityAuthWebUIHandler());
41 } 44 }
42 45
43 ProximityAuthUI::~ProximityAuthUI() { 46 ProximityAuthUI::~ProximityAuthUI() {
44 } 47 }
45 48
46 } // namespace proximity_auth 49 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/proximity_auth/logging/log_buffer.cc ('k') | components/proximity_auth/webui/proximity_auth_webui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698