diff options
-rw-r--r-- | chrome/browser/dom_ui/dom_ui_favicon_source.h | 1 | ||||
-rw-r--r-- | chrome/browser/dom_ui/shown_sections_handler.cc | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/dom_ui/dom_ui_favicon_source.h b/chrome/browser/dom_ui/dom_ui_favicon_source.h index 8dd4190..42d770c 100644 --- a/chrome/browser/dom_ui/dom_ui_favicon_source.h +++ b/chrome/browser/dom_ui/dom_ui_favicon_source.h @@ -20,6 +20,7 @@ class Profile; class DOMUIFavIconSource : public ChromeURLDataManager::DataSource { public: explicit DOMUIFavIconSource(Profile* profile); + virtual ~DOMUIFavIconSource() { } // Called when the network layer has requested a resource underneath // the path we registered. diff --git a/chrome/browser/dom_ui/shown_sections_handler.cc b/chrome/browser/dom_ui/shown_sections_handler.cc index 353dae9..ad05112 100644 --- a/chrome/browser/dom_ui/shown_sections_handler.cc +++ b/chrome/browser/dom_ui/shown_sections_handler.cc @@ -19,8 +19,8 @@ void ShownSectionsHandler::RegisterMessages() { void ShownSectionsHandler::HandleGetShownSections(const Value* value) { const int mode = dom_ui_->GetProfile()->GetPrefs()-> GetInteger(prefs::kNTPShownSections); - FundamentalValue* mode_value = new FundamentalValue(mode); - dom_ui_->CallJavascriptFunction(L"onShownSections", *mode_value); + FundamentalValue mode_value(mode); + dom_ui_->CallJavascriptFunction(L"onShownSections", mode_value); } void ShownSectionsHandler::HandleSetShownSections(const Value* value) { |