Chromium Code Reviews| Index: chrome/browser/search/local_ntp_source.h |
| diff --git a/chrome/browser/search/local_ntp_source.h b/chrome/browser/search/local_ntp_source.h |
| index efa20504f196449fcc1fc81e398f98b4ea1f7ef3..3a2dbb9b327a06709f41c8de97c9423e30606c7c 100644 |
| --- a/chrome/browser/search/local_ntp_source.h |
| +++ b/chrome/browser/search/local_ntp_source.h |
| @@ -9,11 +9,13 @@ |
| #include "base/compiler_specific.h" |
| #include "content/public/browser/url_data_source.h" |
| +class Profile; |
| + |
| // Serves HTML and resources for the local new tab page i.e. |
| // chrome-search://local-ntp/local-ntp.html |
| class LocalNtpSource : public content::URLDataSource { |
| public: |
| - LocalNtpSource(); |
| + explicit LocalNtpSource(Profile* profile); |
| private: |
| virtual ~LocalNtpSource(); |
| @@ -30,6 +32,9 @@ class LocalNtpSource : public content::URLDataSource { |
| const net::URLRequest* request) const OVERRIDE; |
| virtual std::string GetContentSecurityPolicyFrameSrc() const OVERRIDE; |
| + // The original profile (never an OTR profile). |
|
samarth
2013/07/17 16:39:45
What's the rationale behind this restriction?
kmadhusu
2013/07/17 17:58:03
I thought LocalNTPSource is not instantitated for
|
| + Profile* profile_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(LocalNtpSource); |
| }; |