Try to work around that clang/win bug in another file.
[chromium-blink-merge.git] / components / gcm_driver / instance_id / instance_id.cc
blob9e875a02ab4a6852f20f4557e54f3a4a06535183
1 // Copyright 2015 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 "components/gcm_driver/instance_id/instance_id.h"
7 namespace instance_id {
9 InstanceID::InstanceID(const std::string& app_id)
10 : app_id_(app_id) {
13 InstanceID::~InstanceID() {
16 void InstanceID::SetTokenRefreshCallback(const TokenRefreshCallback& callback) {
17 token_refresh_callback_ = callback;
20 void InstanceID::NotifyTokenRefresh(bool update_id) {
21 if (!token_refresh_callback_.is_null())
22 token_refresh_callback_.Run(app_id_, update_id);
25 } // namespace instance_id