diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 20:24:52 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-02 20:24:52 +0000 |
commit | eb41b78b00e9daddcc759f77072a82c9440e4f03 (patch) | |
tree | 09f6cebea2d395dd37f5df28455c83306a143cf1 | |
parent | c94f85914e13f04fa35a56c82ce0eb3cd46f46cf (diff) | |
download | chromium_src-eb41b78b00e9daddcc759f77072a82c9440e4f03.zip chromium_src-eb41b78b00e9daddcc759f77072a82c9440e4f03.tar.gz chromium_src-eb41b78b00e9daddcc759f77072a82c9440e4f03.tar.bz2 |
Fix clang compile
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7828056
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99438 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/webui/ntp/favicon_webui_handler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc b/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc index 4627690..32a0d94 100644 --- a/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc +++ b/chrome/browser/ui/webui/ntp/favicon_webui_handler.cc @@ -94,9 +94,8 @@ void FaviconWebUIHandler::OnFaviconDataAvailable( color_value.reset(new StringValue("#919191")); } - web_ui_->CallJavascriptFunction("ntp4.setStripeColor", - StringValue(dom_id_map_[id]), - *color_value); + StringValue dom_id(dom_id_map_[id]); + web_ui_->CallJavascriptFunction("ntp4.setStripeColor", dom_id, *color_value); dom_id_map_.erase(id); } @@ -134,6 +133,7 @@ void FaviconWebUIHandler::NotifyAppIconReady(const std::string& extension_id) { scoped_refptr<RefCountedStaticMemory> bits_mem( new RefCountedStaticMemory(&bits.front(), bits.size())); scoped_ptr<StringValue> color_value(GetDominantColorCssString(bits_mem)); + StringValue id(extension_id); web_ui_->CallJavascriptFunction( - "ntp4.setStripeColor", StringValue(extension_id), *color_value); + "ntp4.setStripeColor", id, *color_value); } |