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

Side by Side Diff: ui/base/clipboard/clipboard.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
« no previous file with comments | « ui/base/accelerators/platform_accelerator_cocoa.mm ('k') | ui/base/clipboard/clipboard_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/base/clipboard/clipboard.h" 5 #include "ui/base/clipboard/clipboard.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <limits> 8 #include <limits>
9 #include <memory>
9 10
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "ui/gfx/geometry/size.h" 13 #include "ui/gfx/geometry/size.h"
14 14
15 namespace ui { 15 namespace ui {
16 16
17 base::LazyInstance<Clipboard::AllowedThreadsVector> 17 base::LazyInstance<Clipboard::AllowedThreadsVector>
18 Clipboard::allowed_threads_ = LAZY_INSTANCE_INITIALIZER; 18 Clipboard::allowed_threads_ = LAZY_INSTANCE_INITIALIZER;
19 base::LazyInstance<Clipboard::ClipboardMap> Clipboard::clipboard_map_ = 19 base::LazyInstance<Clipboard::ClipboardMap> Clipboard::clipboard_map_ =
20 LAZY_INSTANCE_INITIALIZER; 20 LAZY_INSTANCE_INITIALIZER;
21 base::LazyInstance<base::Lock>::Leaky Clipboard::clipboard_map_lock_ = 21 base::LazyInstance<base::Lock>::Leaky Clipboard::clipboard_map_lock_ =
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 &(params[1].front()), 126 &(params[1].front()),
127 params[1].size()); 127 params[1].size());
128 break; 128 break;
129 129
130 default: 130 default:
131 NOTREACHED(); 131 NOTREACHED();
132 } 132 }
133 } 133 }
134 134
135 } // namespace ui 135 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/accelerators/platform_accelerator_cocoa.mm ('k') | ui/base/clipboard/clipboard_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698