Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: chrome/browser/search/local_ntp_source.h

Issue 19054012: Reload Local NTP on default search provider change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698