summaryrefslogtreecommitdiffstats
path: root/chrome/browser/first_run_win.cc
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 04:21:36 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-15 04:21:36 +0000
commit02e24270eaa44c166ae89be7cb85b09f262f399b (patch)
tree13f4f6ed3994a2a0a2ad28625f92ff549eca4f70 /chrome/browser/first_run_win.cc
parentb2872394ad921258f724f16c63cceb635ea740d5 (diff)
downloadchromium_src-02e24270eaa44c166ae89be7cb85b09f262f399b.zip
chromium_src-02e24270eaa44c166ae89be7cb85b09f262f399b.tar.gz
chromium_src-02e24270eaa44c166ae89be7cb85b09f262f399b.tar.bz2
Remove a ResourceBundle::GetDataResource and convert people to
the StringPiece version. In most cases, I didn't bother trying to make the calling code more efficient since nothing seems to be in time sensitive code. Review URL: http://codereview.chromium.org/2827001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49766 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run_win.cc')
-rw-r--r--chrome/browser/first_run_win.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/first_run_win.cc b/chrome/browser/first_run_win.cc
index 4858871..fc1e0cc 100644
--- a/chrome/browser/first_run_win.cc
+++ b/chrome/browser/first_run_win.cc
@@ -147,15 +147,15 @@ bool LaunchSetupWithParam(const std::string& param, const std::wstring& value,
}
bool WriteEULAtoTempFile(FilePath* eula_path) {
- std::string terms =
- ResourceBundle::GetSharedInstance().GetDataResource(IDR_TERMS_HTML);
+ base::StringPiece terms =
+ ResourceBundle::GetSharedInstance().GetRawDataResource(IDR_TERMS_HTML);
if (terms.empty())
return false;
FilePath temp_dir;
if (!file_util::GetTempDir(&temp_dir))
return false;
*eula_path = temp_dir.Append(L"chrome_eula_iframe.html");
- return (file_util::WriteFile(*eula_path, terms.c_str(), terms.size()) > 0);
+ return (file_util::WriteFile(*eula_path, terms.data(), terms.size()) > 0);
}
// Helper class that performs delayed first-run tasks that need more of the