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

Unified Diff: chrome/browser/speech/tts_win.cc

Issue 2824773002: Rename ScopedComPtr::get() to ScopedComPtr::Get() (Closed)
Patch Set: Update to 5293966 Created 3 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/speech/tts_win.cc
diff --git a/chrome/browser/speech/tts_win.cc b/chrome/browser/speech/tts_win.cc
index de559b11439a773b4a1ee8ab50e74c43b1c70309..828a5e114a31de1f5d8f1abee1f357af7216df4d 100644
--- a/chrome/browser/speech/tts_win.cc
+++ b/chrome/browser/speech/tts_win.cc
@@ -93,7 +93,7 @@ bool TtsPlatformImplWin::Speak(
std::wstring prefix;
std::wstring suffix;
- if (!speech_synthesizer_.get())
+ if (!speech_synthesizer_.Get())
return false;
SetVoiceFromName(voice.name);
@@ -138,7 +138,7 @@ bool TtsPlatformImplWin::Speak(
}
bool TtsPlatformImplWin::StopSpeaking() {
- if (speech_synthesizer_.get()) {
+ if (speech_synthesizer_.Get()) {
// Clear the stream number so that any further events relating to this
// utterance are ignored.
stream_number_ = 0;
@@ -156,7 +156,7 @@ bool TtsPlatformImplWin::StopSpeaking() {
}
void TtsPlatformImplWin::Pause() {
- if (speech_synthesizer_.get() && utterance_id_ && !paused_) {
+ if (speech_synthesizer_.Get() && utterance_id_ && !paused_) {
speech_synthesizer_->Pause();
paused_ = true;
TtsController::GetInstance()->OnTtsEvent(
@@ -165,7 +165,7 @@ void TtsPlatformImplWin::Pause() {
}
void TtsPlatformImplWin::Resume() {
- if (speech_synthesizer_.get() && utterance_id_ && paused_) {
+ if (speech_synthesizer_.Get() && utterance_id_ && paused_) {
speech_synthesizer_->Resume();
paused_ = false;
TtsController::GetInstance()->OnTtsEvent(
@@ -174,7 +174,7 @@ void TtsPlatformImplWin::Resume() {
}
bool TtsPlatformImplWin::IsSpeaking() {
- if (speech_synthesizer_.get()) {
+ if (speech_synthesizer_.Get()) {
SPVOICESTATUS status;
HRESULT result = speech_synthesizer_->GetStatus(&status, NULL);
if (result == S_OK) {
@@ -204,7 +204,7 @@ void TtsPlatformImplWin::GetVoices(
return;
base::win::ScopedCoMem<WCHAR> description;
- if (S_OK != SpGetDescription(voice_token.get(), &description))
+ if (S_OK != SpGetDescription(voice_token.Get(), &description))
continue;
voice.name = base::WideToUTF8(description.get());
@@ -300,10 +300,10 @@ void TtsPlatformImplWin::SetVoiceFromName(const std::string& name) {
return;
base::win::ScopedCoMem<WCHAR> description;
- if (S_OK != SpGetDescription(voice_token.get(), &description))
+ if (S_OK != SpGetDescription(voice_token.Get(), &description))
continue;
if (name == base::WideToUTF8(description.get())) {
- speech_synthesizer_->SetVoice(voice_token.get());
+ speech_synthesizer_->SetVoice(voice_token.Get());
break;
}
}
@@ -316,7 +316,7 @@ TtsPlatformImplWin::TtsPlatformImplWin()
char_position_(0),
paused_(false) {
speech_synthesizer_.CreateInstance(CLSID_SpVoice);
- if (speech_synthesizer_.get()) {
+ if (speech_synthesizer_.Get()) {
ULONGLONG event_mask =
SPFEI(SPEI_START_INPUT_STREAM) |
SPFEI(SPEI_TTS_BOOKMARK) |
« no previous file with comments | « chrome/browser/shell_integration_win.cc ('k') | chrome/browser/ui/views/status_icons/status_tray_state_changer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698