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

Side by Side Diff: chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc

Issue 653773004: Standardize usage of virtual/override/final in chrome/ (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 (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/common/extensions/api/speech/tts_engine_manifest_handler.h" 5 #include "chrome/common/extensions/api/speech/tts_engine_manifest_handler.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "extensions/common/error_utils.h" 11 #include "extensions/common/error_utils.h"
12 #include "extensions/common/manifest.h" 12 #include "extensions/common/manifest.h"
13 #include "extensions/common/manifest_constants.h" 13 #include "extensions/common/manifest_constants.h"
14 #include "ui/base/l10n/l10n_util.h" 14 #include "ui/base/l10n/l10n_util.h"
15 15
16 namespace extensions { 16 namespace extensions {
17 17
18 namespace keys = manifest_keys; 18 namespace keys = manifest_keys;
19 namespace errors = manifest_errors; 19 namespace errors = manifest_errors;
20 20
21 namespace { 21 namespace {
22 22
23 struct TtsVoices : public Extension::ManifestData { 23 struct TtsVoices : public Extension::ManifestData {
24 TtsVoices() {} 24 TtsVoices() {}
25 virtual ~TtsVoices() {} 25 ~TtsVoices() override {}
26 26
27 std::vector<extensions::TtsVoice> voices; 27 std::vector<extensions::TtsVoice> voices;
28 }; 28 };
29 29
30 } // namespace 30 } // namespace
31 31
32 TtsVoice::TtsVoice() : remote(false) {} 32 TtsVoice::TtsVoice() : remote(false) {}
33 33
34 TtsVoice::~TtsVoice() {} 34 TtsVoice::~TtsVoice() {}
35 35
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 extension->SetManifestData(keys::kTtsVoices, info.release()); 143 extension->SetManifestData(keys::kTtsVoices, info.release());
144 return true; 144 return true;
145 } 145 }
146 146
147 const std::vector<std::string> TtsEngineManifestHandler::Keys() const { 147 const std::vector<std::string> TtsEngineManifestHandler::Keys() const {
148 return SingleKey(keys::kTtsEngine); 148 return SingleKey(keys::kTtsEngine);
149 } 149 }
150 150
151 } // namespace extensions 151 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698