Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / extensions / renderer / native_handler.cc
bloba8b343ad58922a6752122651bf0afc03e23062ec
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
3 // found in the LICENSE file.
5 #include "extensions/renderer/native_handler.h"
7 #include "base/logging.h"
9 namespace extensions {
11 NativeHandler::NativeHandler() : is_valid_(true) {}
13 NativeHandler::~NativeHandler() {
14 CHECK(!is_valid_) << "NativeHandlers must be invalidated before destruction";
17 void NativeHandler::Invalidate() {
18 CHECK(is_valid_);
19 is_valid_ = false;
22 } // namespace extensions