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

Unified Diff: chrome/browser/speech/extension_api/tts_extension_apitest.cc

Issue 780713002: Fix remaining WeakPtrFactory ordering problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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/extension_api/tts_extension_apitest.cc
diff --git a/chrome/browser/speech/extension_api/tts_extension_apitest.cc b/chrome/browser/speech/extension_api/tts_extension_apitest.cc
index 1dadbc508409beac5c1d21707396bc2ef238b9b0..386175a6d77d0b41fb0ec9c203abb3cae3a519a8 100644
--- a/chrome/browser/speech/extension_api/tts_extension_apitest.cc
+++ b/chrome/browser/speech/extension_api/tts_extension_apitest.cc
@@ -45,8 +45,8 @@ namespace extensions {
class MockTtsPlatformImpl : public TtsPlatformImpl {
public:
MockTtsPlatformImpl()
- : ptr_factory_(this),
- should_fake_get_voices_(false) {}
+ : should_fake_get_voices_(false),
+ ptr_factory_(this) {}
virtual bool PlatformImplAvailable() {
return true;
@@ -162,8 +162,8 @@ class MockTtsPlatformImpl : public TtsPlatformImpl {
}
private:
- base::WeakPtrFactory<MockTtsPlatformImpl> ptr_factory_;
bool should_fake_get_voices_;
+ base::WeakPtrFactory<MockTtsPlatformImpl> ptr_factory_;
};
class FakeNetworkOnlineStateForTest : public net::NetworkChangeNotifier {

Powered by Google App Engine
This is Rietveld 408576698