| Index: chrome/browser/extensions/user_script_master.cc
|
| diff --git a/chrome/browser/extensions/user_script_master.cc b/chrome/browser/extensions/user_script_master.cc
|
| index 5f0988c0c033c128dbaab16e7fb5139d7d1466fd..bbfe3a7d32ec75d6e99dbb803e63184edeee9614 100644
|
| --- a/chrome/browser/extensions/user_script_master.cc
|
| +++ b/chrome/browser/extensions/user_script_master.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -20,6 +20,7 @@
|
| #include "chrome/browser/extensions/extension_system.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| +#include "chrome/common/extensions/api/content_scripts/content_scripts_handler.h"
|
| #include "chrome/common/extensions/extension.h"
|
| #include "chrome/common/extensions/extension_file_util.h"
|
| #include "chrome/common/extensions/extension_resource.h"
|
| @@ -362,7 +363,8 @@ void UserScriptMaster::Observe(int type,
|
| extension->path(), extension->default_locale());
|
| bool incognito_enabled = extensions::ExtensionSystem::Get(profile_)->
|
| extension_service()->IsIncognitoEnabled(extension->id());
|
| - const UserScriptList& scripts = extension->content_scripts();
|
| + const UserScriptList& scripts =
|
| + ContentScriptsInfo::GetContentScripts(extension);
|
| for (UserScriptList::const_iterator iter = scripts.begin();
|
| iter != scripts.end(); ++iter) {
|
| user_scripts_.push_back(*iter);
|
|
|