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

Side by Side Diff: chrome/browser/ui/webui/inspect_ui.cc

Issue 2230203002: chrome: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed accidental components/ change Created 4 years, 4 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 (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/inspect_ui.h" 5 #include "chrome/browser/ui/webui/inspect_ui.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/devtools/devtools_target_impl.h" 9 #include "chrome/browser/devtools/devtools_target_impl.h"
10 #include "chrome/browser/devtools/devtools_targets_ui.h" 10 #include "chrome/browser/devtools/devtools_targets_ui.h"
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 base::Unretained(this))); 409 base::Unretained(this)));
410 pref_change_registrar_.Add(prefs::kDevToolsPortForwardingConfig, 410 pref_change_registrar_.Add(prefs::kDevToolsPortForwardingConfig,
411 base::Bind(&InspectUI::UpdatePortForwardingConfig, 411 base::Bind(&InspectUI::UpdatePortForwardingConfig,
412 base::Unretained(this))); 412 base::Unretained(this)));
413 } 413 }
414 414
415 void InspectUI::StopListeningNotifications() { 415 void InspectUI::StopListeningNotifications() {
416 if (target_handlers_.empty()) 416 if (target_handlers_.empty())
417 return; 417 return;
418 418
419 STLDeleteValues(&target_handlers_); 419 base::STLDeleteValues(&target_handlers_);
420 420
421 port_status_serializer_.reset(); 421 port_status_serializer_.reset();
422 422
423 notification_registrar_.RemoveAll(); 423 notification_registrar_.RemoveAll();
424 pref_change_registrar_.RemoveAll(); 424 pref_change_registrar_.RemoveAll();
425 } 425 }
426 426
427 content::WebUIDataSource* InspectUI::CreateInspectUIHTMLSource() { 427 content::WebUIDataSource* InspectUI::CreateInspectUIHTMLSource() {
428 content::WebUIDataSource* source = 428 content::WebUIDataSource* source =
429 content::WebUIDataSource::Create(chrome::kChromeUIInspectHost); 429 content::WebUIDataSource::Create(chrome::kChromeUIInspectHost);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 handler->ForceUpdate(); 525 handler->ForceUpdate();
526 } 526 }
527 527
528 void InspectUI::PopulatePortStatus(const base::Value& status) { 528 void InspectUI::PopulatePortStatus(const base::Value& status) {
529 web_ui()->CallJavascriptFunctionUnsafe("populatePortStatus", status); 529 web_ui()->CallJavascriptFunctionUnsafe("populatePortStatus", status);
530 } 530 }
531 531
532 void InspectUI::ShowIncognitoWarning() { 532 void InspectUI::ShowIncognitoWarning() {
533 web_ui()->CallJavascriptFunctionUnsafe("showIncognitoWarning"); 533 web_ui()->CallJavascriptFunctionUnsafe("showIncognitoWarning");
534 } 534 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698