Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / ios / chrome / browser / snapshots / snapshot_overlay.mm
blobc1e0175ce435fd5c916b2b519a48ab041814a26c
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #import "ios/chrome/browser/snapshots/snapshot_overlay.h"
7 #include "base/logging.h"
9 @implementation SnapshotOverlay
11 - (id)initWithView:(UIView*)view yOffset:(CGFloat)yOffset {
12   self = [super init];
13   if (self) {
14     DCHECK(view);
15     view_.reset([view retain]);
16     yOffset_ = yOffset;
17   }
18   return self;
21 - (UIView*)view {
22   return view_;
25 - (CGFloat)yOffset {
26   return yOffset_;
29 @end