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

Side by Side Diff: extensions/browser/test_extension_registry_observer.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/test_extension_registry_observer.h" 5 #include "extensions/browser/test_extension_registry_observer.h"
6 6
7 #include "base/macros.h"
7 #include "base/run_loop.h" 8 #include "base/run_loop.h"
8 #include "extensions/browser/extension_registry.h" 9 #include "extensions/browser/extension_registry.h"
9 10
10 namespace extensions { 11 namespace extensions {
11 12
12 class TestExtensionRegistryObserver::Waiter { 13 class TestExtensionRegistryObserver::Waiter {
13 public: 14 public:
14 Waiter() : observed_(false), extension_(nullptr) {} 15 Waiter() : observed_(false), extension_(nullptr) {}
15 16
16 void Wait() { 17 void Wait() {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 waiter->get()->Wait(); 109 waiter->get()->Wait();
109 const Extension* extension = waiter->get()->extension(); 110 const Extension* extension = waiter->get()->extension();
110 // Reset the waiter for future uses. 111 // Reset the waiter for future uses.
111 // We could have a Waiter::Reset method, but it would reset every field in the 112 // We could have a Waiter::Reset method, but it would reset every field in the
112 // class, so let's just reset the pointer. 113 // class, so let's just reset the pointer.
113 waiter->reset(new Waiter()); 114 waiter->reset(new Waiter());
114 return extension; 115 return extension;
115 } 116 }
116 117
117 } // namespace extensions 118 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/test_extension_registry_observer.h ('k') | extensions/browser/test_extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698