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

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

Issue 629463003: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[w-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/network_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/network_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 13 matching lines...) Expand all
24 namespace { 24 namespace {
25 25
26 const int kMaxLogEvents = 1000; 26 const int kMaxLogEvents = 1000;
27 27
28 class NetworkUIMessageHandler : public content::WebUIMessageHandler { 28 class NetworkUIMessageHandler : public content::WebUIMessageHandler {
29 public: 29 public:
30 NetworkUIMessageHandler() {} 30 NetworkUIMessageHandler() {}
31 virtual ~NetworkUIMessageHandler() {} 31 virtual ~NetworkUIMessageHandler() {}
32 32
33 // WebUIMessageHandler implementation. 33 // WebUIMessageHandler implementation.
34 virtual void RegisterMessages() OVERRIDE { 34 virtual void RegisterMessages() override {
35 web_ui()->RegisterMessageCallback( 35 web_ui()->RegisterMessageCallback(
36 "NetworkUI.getNetworkLog", 36 "NetworkUI.getNetworkLog",
37 base::Bind(&NetworkUIMessageHandler::GetNetworkLog, 37 base::Bind(&NetworkUIMessageHandler::GetNetworkLog,
38 base::Unretained(this))); 38 base::Unretained(this)));
39 } 39 }
40 40
41 private: 41 private:
42 void GetNetworkLog(const base::ListValue* value) const { 42 void GetNetworkLog(const base::ListValue* value) const {
43 base::StringValue data(chromeos::network_event_log::GetAsString( 43 base::StringValue data(chromeos::network_event_log::GetAsString(
44 chromeos::network_event_log::NEWEST_FIRST, 44 chromeos::network_event_log::NEWEST_FIRST,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 html->SetDefaultResource(IDR_NETWORK_UI_HTML); 81 html->SetDefaultResource(IDR_NETWORK_UI_HTML);
82 82
83 content::WebUIDataSource::Add( 83 content::WebUIDataSource::Add(
84 web_ui->GetWebContents()->GetBrowserContext(), html); 84 web_ui->GetWebContents()->GetBrowserContext(), html);
85 } 85 }
86 86
87 NetworkUI::~NetworkUI() { 87 NetworkUI::~NetworkUI() {
88 } 88 }
89 89
90 } // namespace chromeos 90 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/network_config_message_handler.h ('k') | chrome/browser/ui/webui/chromeos/nfc_debug_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698