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

Unified Diff: chrome/renderer/searchbox_extension.cc

Issue 8468018: chrome: Remove 10 exit time destructors and 2 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: duh Created 9 years, 1 month 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 | « chrome/renderer/extensions/schema_generated_bindings.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox_extension.cc
diff --git a/chrome/renderer/searchbox_extension.cc b/chrome/renderer/searchbox_extension.cc
index 1872cb12de2120d71fb08fd4d5d1ff38373723fb..1663c5a5b466a17014521c33b66995eb6d38ee06 100644
--- a/chrome/renderer/searchbox_extension.cc
+++ b/chrome/renderer/searchbox_extension.cc
@@ -420,8 +420,8 @@ bool SearchBoxExtension::PageSupportsInstant(WebFrame* frame) {
// The deprecated API needs to notify the page of events it may have missed.
// This isn't necessary in the SearchBox API, since the page can query the
// API at any time.
- static std::string init_script(
- StringPrintf(kInitScript, kSetOmniboxBoundsScript, kUserInputScript));
+ CR_DEFINE_STATIC_LOCAL(std::string, init_script,
+ (StringPrintf(kInitScript, kSetOmniboxBoundsScript, kUserInputScript)));
if (supports_deprecated_api) {
frame->executeScript(WebScriptSource(WebString::fromUTF8(init_script)));
}
« no previous file with comments | « chrome/renderer/extensions/schema_generated_bindings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698