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

Unified Diff: chrome/browser/render_process_host.h

Issue 4079: Porting refactoring changes:... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 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
Index: chrome/browser/render_process_host.h
===================================================================
--- chrome/browser/render_process_host.h (revision 2544)
+++ chrome/browser/render_process_host.h (working copy)
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_RENDER_PROCESS_HOST_H_
#define CHROME_BROWSER_RENDER_PROCESS_HOST_H_
+#include <limits>
#include <set>
#include <vector>
#include <windows.h>
@@ -12,12 +13,12 @@
#include "base/id_map.h"
#include "base/object_watcher.h"
#include "base/process.h"
+#include "base/rand_util.h"
#include "base/ref_counted.h"
#include "base/scoped_handle.h"
#include "base/scoped_ptr.h"
#include "chrome/common/ipc_sync_channel.h"
#include "chrome/common/notification_service.h"
-#include "chrome/common/rand_util.h"
#include "chrome/common/render_messages.h"
class PrefService;
@@ -271,7 +272,7 @@
// to fail.
return StringPrintf(L"%d.%x.%d",
GetCurrentProcessId(), instance,
- rand_util::RandIntSecure(0, kint32max));
+ base::RandInt(0, std::numeric_limits<int>::max()));
}

Powered by Google App Engine
This is Rietveld 408576698