| Index: chrome/browser/user_style_sheet_watcher_factory.cc
|
| diff --git a/chrome/browser/user_style_sheet_watcher_factory.cc b/chrome/browser/user_style_sheet_watcher_factory.cc
|
| index 64367fc8dc8d8a3fa11c313305f677788db1378c..307dd1cbf6b6225c324465d0e984242bf35ca8e4 100644
|
| --- a/chrome/browser/user_style_sheet_watcher_factory.cc
|
| +++ b/chrome/browser/user_style_sheet_watcher_factory.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/user_style_sheet_watcher_factory.h"
|
|
|
| +#include "chrome/browser/profiles/incognito_helpers.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_dependency_manager.h"
|
| #include "chrome/browser/user_style_sheet_watcher.h"
|
| @@ -39,8 +40,9 @@ UserStyleSheetWatcherFactory::BuildServiceInstanceFor(
|
| return user_style_sheet_watcher;
|
| }
|
|
|
| -bool UserStyleSheetWatcherFactory::ServiceRedirectedInIncognito() const {
|
| - return true;
|
| +content::BrowserContext* UserStyleSheetWatcherFactory::GetBrowserContextToUse(
|
| + content::BrowserContext* context) const {
|
| + return chrome::GetBrowserContextRedirectedInIncognito(context);
|
| }
|
|
|
| bool UserStyleSheetWatcherFactory::ServiceIsNULLWhileTesting() const {
|
|
|