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

Side by Side Diff: content/browser/browser_thread_impl.cc

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/browser_thread_impl.h" 5 #include "content/browser/browser_thread_impl.h"
6 6
7 #include <string.h>
8
7 #include <string> 9 #include <string>
8 10
9 #include "base/atomicops.h" 11 #include "base/atomicops.h"
10 #include "base/bind.h" 12 #include "base/bind.h"
11 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
12 #include "base/lazy_instance.h" 14 #include "base/lazy_instance.h"
13 #include "base/macros.h" 15 #include "base/macros.h"
14 #include "base/single_thread_task_runner.h" 16 #include "base/single_thread_task_runner.h"
15 #include "base/threading/sequenced_worker_pool.h" 17 #include "base/threading/sequenced_worker_pool.h"
16 #include "base/threading/thread_restrictions.h" 18 #include "base/threading/thread_restrictions.h"
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 AtomicWord* storage = reinterpret_cast<AtomicWord*>( 546 AtomicWord* storage = reinterpret_cast<AtomicWord*>(
545 &globals.thread_delegates[identifier]); 547 &globals.thread_delegates[identifier]);
546 AtomicWord old_pointer = base::subtle::NoBarrier_AtomicExchange( 548 AtomicWord old_pointer = base::subtle::NoBarrier_AtomicExchange(
547 storage, reinterpret_cast<AtomicWord>(delegate)); 549 storage, reinterpret_cast<AtomicWord>(delegate));
548 550
549 // This catches registration when previously registered. 551 // This catches registration when previously registered.
550 DCHECK(!delegate || !old_pointer); 552 DCHECK(!delegate || !old_pointer);
551 } 553 }
552 554
553 } // namespace content 555 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698