From c2d4449362cb38bfe492d7655885c4c5b3944139 Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Thu, 17 Sep 2009 20:36:29 +0000 Subject: Fixed a few data races on reference counters. BUG=18488 Review URL: http://codereview.chromium.org/215011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26476 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/extensions/user_script_master.h | 2 +- chrome/browser/history/history_marshaling.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/extensions/user_script_master.h b/chrome/browser/extensions/user_script_master.h index af66879..57f4fe2 100644 --- a/chrome/browser/extensions/user_script_master.h +++ b/chrome/browser/extensions/user_script_master.h @@ -22,7 +22,7 @@ class StringPiece; // Manages a segment of shared memory that contains the user scripts the user // has installed. Lives on the UI thread. -class UserScriptMaster : public base::RefCounted, +class UserScriptMaster : public base::RefCountedThreadSafe, public DirectoryWatcher::Delegate, public NotificationObserver { public: diff --git a/chrome/browser/history/history_marshaling.h b/chrome/browser/history/history_marshaling.h index b289228..947f966 100644 --- a/chrome/browser/history/history_marshaling.h +++ b/chrome/browser/history/history_marshaling.h @@ -19,7 +19,8 @@ namespace history { // Navigation ----------------------------------------------------------------- // Marshalling structure for AddPage. -class HistoryAddPageArgs : public base::RefCounted { +class HistoryAddPageArgs + : public base::RefCountedThreadSafe { public: HistoryAddPageArgs(const GURL& arg_url, base::Time arg_time, -- cgit v1.1