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

Unified Diff: chrome/browser/diagnostics/diagnostics_writer.cc

Issue 1109043003: Apply automated fixits for Chrome clang plugin to chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/diagnostics/diagnostics_writer.cc
diff --git a/chrome/browser/diagnostics/diagnostics_writer.cc b/chrome/browser/diagnostics/diagnostics_writer.cc
index 835c24f1851638e35d89291590410ef3ef739ac3..f219812cb3ee7e11e4d7eede35a58f20e64c839c 100644
--- a/chrome/browser/diagnostics/diagnostics_writer.cc
+++ b/chrome/browser/diagnostics/diagnostics_writer.cc
@@ -67,22 +67,18 @@ class WinConsole : public SimpleConsole {
::AllocConsole();
}
- virtual ~WinConsole() {
- ::FreeConsole();
- }
+ ~WinConsole() override { ::FreeConsole(); }
- virtual bool Init() {
- return SetIOHandles();
- }
+ bool Init() override { return SetIOHandles(); }
- virtual bool Write(const base::string16& txt) {
+ bool Write(const base::string16& txt) override {
DWORD sz = txt.size();
return (TRUE == ::WriteConsoleW(std_out_, txt.c_str(), sz, &sz, NULL));
}
// Reads a string from the console. Internally it is limited to 256
// characters.
- virtual void OnQuit() {
+ void OnQuit() override {
// Block here so the user can see the results.
SetColor(SimpleConsole::DEFAULT);
Write(L"Press [enter] to continue\n");
@@ -92,7 +88,7 @@ class WinConsole : public SimpleConsole {
}
// Sets the foreground and background color.
- virtual bool SetColor(Color color) {
+ bool SetColor(Color color) override {
uint16 color_combo = FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE |
FOREGROUND_INTENSITY;
switch (color) {
« no previous file with comments | « chrome/browser/component_updater/sw_reporter_installer_win.cc ('k') | chrome/browser/first_run/try_chrome_dialog_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698