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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.h

Issue 2875943003: Cleanup: Remove dead code in NewTabUI (Closed)
Patch Set: review Created 3 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/new_tab_ui.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.h b/chrome/browser/ui/webui/ntp/new_tab_ui.h
index 1af06edfd724f82bbdbe57d47414d7c70c093528..a35a594cf49d29d8773955da37cccdf1f2dfd17d 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.h
@@ -5,9 +5,6 @@
#ifndef CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
#define CHROME_BROWSER_UI_WEBUI_NTP_NEW_TAB_UI_H_
-#include <map>
-#include <string>
-
#include "base/macros.h"
#include "base/strings/string16.h"
#include "components/prefs/pref_change_registrar.h"
@@ -72,20 +69,10 @@ class NewTabUI : public content::WebUIController {
std::string GetContentSecurityPolicyImgSrc() const override;
std::string GetContentSecurityPolicyChildSrc() const override;
- // Adds |resource| to the source. |resource_id| is resource id or 0,
- // which means return empty data set. |mime_type| is mime type of the
- // resource.
- void AddResource(const char* resource,
- const char* mime_type,
- int resource_id);
-
private:
// Pointer back to the original profile.
Profile* profile_;
- // Maps resource files to mime types an resource ids.
- std::map<std::string, std::pair<std::string, int> > resource_map_;
-
DISALLOW_COPY_AND_ASSIGN(NewTabHTMLSource);
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698