summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender/prerender_link_manager.cc
diff options
context:
space:
mode:
authoravi <avi@chromium.org>2015-12-25 18:10:43 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-26 02:11:32 +0000
commitb896c715dd14ec1f7ac800350b40eeb6de2ba868 (patch)
treeacc471478046a775c3492046a40c2ea84e8ea88a /chrome/browser/prerender/prerender_link_manager.cc
parentf5b61be8a18b07a2a928f10bf1f8f0e8a5358f13 (diff)
downloadchromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.zip
chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.tar.gz
chromium_src-b896c715dd14ec1f7ac800350b40eeb6de2ba868.tar.bz2
Switch to standard integer types in chrome/browser/, part 3 of 4.
BUG=138542 TBR=thakis@chromium.org Review URL: https://codereview.chromium.org/1548133002 Cr-Commit-Position: refs/heads/master@{#366883}
Diffstat (limited to 'chrome/browser/prerender/prerender_link_manager.cc')
-rw-r--r--chrome/browser/prerender/prerender_link_manager.cc17
1 files changed, 8 insertions, 9 deletions
diff --git a/chrome/browser/prerender/prerender_link_manager.cc b/chrome/browser/prerender/prerender_link_manager.cc
index ca3bc1a..7c9e3d2 100644
--- a/chrome/browser/prerender/prerender_link_manager.cc
+++ b/chrome/browser/prerender/prerender_link_manager.cc
@@ -47,7 +47,7 @@ bool ShouldStartRelNextPrerenders() {
return experiment_name.find("Yes") != std::string::npos;
}
-bool ShouldStartPrerender(const uint32 rel_types) {
+bool ShouldStartPrerender(const uint32_t rel_types) {
const bool should_start_rel_next_prerenders =
ShouldStartRelNextPrerenders();
@@ -73,14 +73,14 @@ enum RelTypeHistogramEnum {
RelTypeHistogramEnumMax,
};
-void RecordLinkManagerAdded(const uint32 rel_types) {
- const uint32 enum_value = rel_types & (RelTypeHistogramEnumMax - 1);
+void RecordLinkManagerAdded(const uint32_t rel_types) {
+ const uint32_t enum_value = rel_types & (RelTypeHistogramEnumMax - 1);
UMA_HISTOGRAM_ENUMERATION("Prerender.RelTypesLinkAdded", enum_value,
RelTypeHistogramEnumMax);
}
-void RecordLinkManagerStarting(const uint32 rel_types) {
- const uint32 enum_value = rel_types & (RelTypeHistogramEnumMax - 1);
+void RecordLinkManagerStarting(const uint32_t rel_types) {
+ const uint32_t enum_value = rel_types & (RelTypeHistogramEnumMax - 1);
UMA_HISTOGRAM_ENUMERATION("Prerender.RelTypesLinkStarted", enum_value,
RelTypeHistogramEnumMax);
}
@@ -162,7 +162,7 @@ PrerenderLinkManager::~PrerenderLinkManager() {
void PrerenderLinkManager::OnAddPrerender(int launcher_child_id,
int prerender_id,
const GURL& url,
- uint32 rel_types,
+ uint32_t rel_types,
const content::Referrer& referrer,
const gfx::Size& size,
int render_view_route_id) {
@@ -256,7 +256,7 @@ PrerenderLinkManager::LinkPrerender::LinkPrerender(
int launcher_child_id,
int prerender_id,
const GURL& url,
- uint32 rel_types,
+ uint32_t rel_types,
const content::Referrer& referrer,
const gfx::Size& size,
int render_view_route_id,
@@ -273,8 +273,7 @@ PrerenderLinkManager::LinkPrerender::LinkPrerender(
deferred_launcher(deferred_launcher),
handle(NULL),
is_match_complete_replacement(false),
- has_been_abandoned(false) {
-}
+ has_been_abandoned(false) {}
PrerenderLinkManager::LinkPrerender::~LinkPrerender() {
DCHECK_EQ(static_cast<PrerenderHandle*>(NULL), handle)