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

Unified Diff: chrome_frame/test/perf/chrome_frame_perftest.cc

Issue 23985006: base: Split logging functions and PerfTimeLogger out of perftimer.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix visitedlink Created 7 years, 3 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 | « chrome_frame/test/perf/chrome_frame_perftest.h ('k') | chrome_frame/test/perf/silverlight.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/perf/chrome_frame_perftest.cc
diff --git a/chrome_frame/test/perf/chrome_frame_perftest.cc b/chrome_frame/test/perf/chrome_frame_perftest.cc
index c12c2c97fcc37f97113d00164177ac7a492e2106..31f9ac17f60785b5a20fe5d33d42f3864d82ccd2 100644
--- a/chrome_frame/test/perf/chrome_frame_perftest.cc
+++ b/chrome_frame/test/perf/chrome_frame_perftest.cc
@@ -1,6 +1,7 @@
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+
#include "chrome_frame/test/perf/chrome_frame_perftest.h"
#include <atlhost.h>
@@ -21,6 +22,7 @@
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "base/test/perf_time_logger.h"
#include "base/test/test_file_util.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
@@ -230,8 +232,8 @@ class ChromeFrameActiveXContainerPerf : public ChromeFrameActiveXContainer {
ChromeFrameActiveXContainerPerf() {}
void CreateControl(bool setup_event_sinks) {
- perf_initialize_.reset(new PerfTimeLogger("Fully initialized"));
- PerfTimeLogger perf_create("Create Control");
+ perf_initialize_.reset(new base::PerfTimeLogger("Fully initialized"));
+ base::PerfTimeLogger perf_create("Create Control");
HRESULT hr = chromeview_.CreateControl(L"ChromeTab.ChromeFrame");
EXPECT_HRESULT_SUCCEEDED(hr);
@@ -272,11 +274,11 @@ class ChromeFrameActiveXContainerPerf : public ChromeFrameActiveXContainer {
virtual void BeforeNavigateImpl(const char* url ) {
std::string test_name = "Navigate ";
test_name += url;
- perf_navigate_.reset(new PerfTimeLogger(test_name.c_str()));
+ perf_navigate_.reset(new base::PerfTimeLogger(test_name.c_str()));
}
- scoped_ptr<PerfTimeLogger> perf_initialize_;
- scoped_ptr<PerfTimeLogger> perf_navigate_;
+ scoped_ptr<base::PerfTimeLogger> perf_initialize_;
+ scoped_ptr<base::PerfTimeLogger> perf_navigate_;
};
// This class provides common functionality which can be used for most of the
« no previous file with comments | « chrome_frame/test/perf/chrome_frame_perftest.h ('k') | chrome_frame/test/perf/silverlight.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698