summaryrefslogtreecommitdiffstats
path: root/content/browser/webui/web_ui_data_source_impl.cc
diff options
context:
space:
mode:
authorjered@chromium.org <jered@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 16:12:33 +0000
committerjered@chromium.org <jered@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-17 16:12:33 +0000
commit305b8e8c9152dc31b1e580f8442e70dd07d2137f (patch)
tree342ad0af9ec86c2e9369048a3b7448d8f4d54385 /content/browser/webui/web_ui_data_source_impl.cc
parent5504c56e63e603104f6a9870f3dd30f32eb29f74 (diff)
downloadchromium_src-305b8e8c9152dc31b1e580f8442e70dd07d2137f.zip
chromium_src-305b8e8c9152dc31b1e580f8442e70dd07d2137f.tar.gz
chromium_src-305b8e8c9152dc31b1e580f8442e70dd07d2137f.tar.bz2
Make URLDataSource::GetSource() const.
The method is logically const, all callers are already const, and I wanted to call this from a const method. BUG= Review URL: https://codereview.chromium.org/13945023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@194605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/webui/web_ui_data_source_impl.cc')
-rw-r--r--content/browser/webui/web_ui_data_source_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/webui/web_ui_data_source_impl.cc b/content/browser/webui/web_ui_data_source_impl.cc
index 5f17e53..9347e7c 100644
--- a/content/browser/webui/web_ui_data_source_impl.cc
+++ b/content/browser/webui/web_ui_data_source_impl.cc
@@ -35,7 +35,7 @@ class WebUIDataSourceImpl::InternalDataSource : public URLDataSource {
}
// URLDataSource implementation.
- virtual std::string GetSource() OVERRIDE {
+ virtual std::string GetSource() const OVERRIDE {
return parent_->GetSource();
}
virtual std::string GetMimeType(const std::string& path) const OVERRIDE {
@@ -152,7 +152,7 @@ void WebUIDataSourceImpl::DisableDenyXFrameOptions() {
deny_xframe_options_ = false;
}
-std::string WebUIDataSourceImpl::GetSource() {
+std::string WebUIDataSourceImpl::GetSource() const {
return source_name_;
}