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

Unified Diff: chrome/browser/load_library_perf_test.cc

Issue 206713004: Report PPAPI plugin load error code to UMA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BASE_EXPORT Created 6 years, 9 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 | « base/native_library_win.cc ('k') | chrome/plugin/chrome_content_plugin_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/load_library_perf_test.cc
diff --git a/chrome/browser/load_library_perf_test.cc b/chrome/browser/load_library_perf_test.cc
index c35cd0bb86942fffd17b02d2aa49642ef708ec53..d869e54d8761628e0ec9ba582a058d57080a6343 100644
--- a/chrome/browser/load_library_perf_test.cc
+++ b/chrome/browser/load_library_perf_test.cc
@@ -28,12 +28,12 @@ void MeasureSizeAndTimeToLoadNativeLibrary(const base::FilePath& library_name) {
"bytes",
true);
- std::string error;
+ base::NativeLibraryLoadError error;
base::TimeTicks start = base::TimeTicks::HighResNow();
base::NativeLibrary native_library =
base::LoadNativeLibrary(library_path, &error);
double delta = (base::TimeTicks::HighResNow() - start).InMillisecondsF();
- ASSERT_TRUE(native_library) << "Error loading library: " << error;
+ ASSERT_TRUE(native_library) << "Error loading library: " << error.ToString();
base::UnloadNativeLibrary(native_library);
perf_test::PrintResult("time_to_load_library",
"",
« no previous file with comments | « base/native_library_win.cc ('k') | chrome/plugin/chrome_content_plugin_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698