| Index: chrome/test/testing_profile.cc
|
| diff --git a/chrome/test/testing_profile.cc b/chrome/test/testing_profile.cc
|
| index bddfc7f526a7e775fcd8c74046190ce790c6dd83..2f417cfe9550a4f7f7f98b7503d3b9c1cd6b7936 100644
|
| --- a/chrome/test/testing_profile.cc
|
| +++ b/chrome/test/testing_profile.cc
|
| @@ -175,19 +175,18 @@ void TestingProfile::CreateTemplateURLModel() {
|
| void TestingProfile::UseThemeProvider(BrowserThemeProvider* theme_provider) {
|
| theme_provider->Init(this);
|
| created_theme_provider_ = true;
|
| - theme_provider_ = theme_provider;
|
| + theme_provider_.reset(theme_provider);
|
| }
|
|
|
| void TestingProfile::InitThemes() {
|
| if (!created_theme_provider_) {
|
| #if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
|
| - scoped_refptr<BrowserThemeProvider> themes(new GtkThemeProvider);
|
| + theme_provider_.reset(new GtkThemeProvider);
|
| #else
|
| - scoped_refptr<BrowserThemeProvider> themes(new BrowserThemeProvider);
|
| + theme_provider_.reset(new BrowserThemeProvider);
|
| #endif
|
| - themes->Init(this);
|
| + theme_provider_->Init(this);
|
| created_theme_provider_ = true;
|
| - theme_provider_.swap(themes);
|
| }
|
| }
|
|
|
|
|