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

Unified Diff: chrome/browser/ui/webui/inspect_ui.cc

Issue 18137007: DevTools: add about:flag for ADB-less remote debugging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For landing Created 7 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
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/inspect_ui.cc
diff --git a/chrome/browser/ui/webui/inspect_ui.cc b/chrome/browser/ui/webui/inspect_ui.cc
index 318129928e7501a40ed6af141741d85b99a4124f..248d19debadaa79ec93f07e7ef771a209bb358c2 100644
--- a/chrome/browser/ui/webui/inspect_ui.cc
+++ b/chrome/browser/ui/webui/inspect_ui.cc
@@ -370,8 +370,8 @@ InspectUI::InspectUI(content::WebUI* web_ui)
weak_factory_(this) {
observer_->Init(this);
Profile* profile = Profile::FromWebUI(web_ui);
- adb_bridge_.reset(new DevToolsAdbBridge(profile));
- web_ui->AddMessageHandler(new InspectMessageHandler(adb_bridge_.get()));
+ adb_bridge_ = DevToolsAdbBridge::Factory::GetForProfile(profile);
+ web_ui->AddMessageHandler(new InspectMessageHandler(adb_bridge_));
content::WebUIDataSource::Add(profile, CreateInspectUIHTMLSource());
registrar_.Add(this,
@@ -416,7 +416,7 @@ void InspectUI::StopListeningNotifications()
{
if (!observer_.get())
return;
- adb_bridge_.reset();
+ adb_bridge_ = NULL;
observer_->InspectUIDestroyed();
observer_ = NULL;
registrar_.RemoveAll();
« no previous file with comments | « chrome/browser/ui/webui/inspect_ui.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698