| Index: chrome/browser/ui/search/instant_extended_interactive_uitest.cc
 | 
| diff --git a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
 | 
| index e61e99b48e9ebd7a88f31b505b5116a74de9cfde..7bc09d771a762d28a42be260f08c19fbede91785 100644
 | 
| --- a/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
 | 
| +++ b/chrome/browser/ui/search/instant_extended_interactive_uitest.cc
 | 
| @@ -291,7 +291,8 @@
 | 
|    void InstallThemeAndVerify(const std::string& theme_dir,
 | 
|                               const std::string& theme_name) {
 | 
|      const extensions::Extension* theme =
 | 
| -        ThemeServiceFactory::GetThemeForProfile(profile());
 | 
| +        ThemeServiceFactory::GetThemeForProfile(
 | 
| +            ExtensionBrowserTest::browser()->profile());
 | 
|      // If there is already a theme installed, the current theme should be
 | 
|      // disabled and the new one installed + enabled.
 | 
|      int expected_change = theme ? 0 : 1;
 | 
| @@ -299,13 +300,9 @@
 | 
|      const base::FilePath theme_path = test_data_dir_.AppendASCII(theme_dir);
 | 
|      ASSERT_TRUE(InstallExtensionWithUIAutoConfirm(
 | 
|          theme_path, expected_change, ExtensionBrowserTest::browser()));
 | 
| -    content::WindowedNotificationObserver theme_change_observer(
 | 
| -        chrome::NOTIFICATION_BROWSER_THEME_CHANGED,
 | 
| -        content::Source<ThemeService>(
 | 
| -            ThemeServiceFactory::GetForProfile(profile())));
 | 
| -    theme_change_observer.Wait();
 | 
|      const extensions::Extension* new_theme =
 | 
| -        ThemeServiceFactory::GetThemeForProfile(profile());
 | 
| +        ThemeServiceFactory::GetThemeForProfile(
 | 
| +            ExtensionBrowserTest::browser()->profile());
 | 
|      ASSERT_NE(static_cast<extensions::Extension*>(NULL), new_theme);
 | 
|      ASSERT_EQ(new_theme->name(), theme_name);
 | 
|    }
 | 
| 
 |