| Index: chrome/browser/profiles/profile.cc
|
| diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
|
| index 8144b32e3bade9fb0a41e19499c6c7eb554a6d94..656c9bf02adc7a3b0cb440263fc4889be5bc1979 100644
|
| --- a/chrome/browser/profiles/profile.cc
|
| +++ b/chrome/browser/profiles/profile.cc
|
| @@ -53,6 +53,8 @@
|
| #include "content/browser/host_zoom_map.h"
|
| #include "content/browser/in_process_webkit/webkit_context.h"
|
| #include "content/browser/ssl/ssl_host_state.h"
|
| +#include "content/browser/tab_contents/tab_contents.h"
|
| +#include "content/browser/webui/web_ui.h"
|
| #include "content/common/notification_service.h"
|
| #include "grit/locale_settings.h"
|
| #include "net/base/transport_security_state.h"
|
| @@ -108,6 +110,11 @@ Profile* Profile::FromBrowserContext(content::BrowserContext* browser_context) {
|
| }
|
|
|
| // static
|
| +Profile* Profile::FromWebUI(WebUI* web_ui) {
|
| + return FromBrowserContext(web_ui->tab_contents()->browser_context());
|
| +}
|
| +
|
| +// static
|
| const char* const Profile::kProfileKey = "__PROFILE__";
|
|
|
| #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) && defined(OS_POSIX)
|
|
|