Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / chromeos / profiles / profile_util.cc
blob25222ba124232d60fc5402f4dced02e3db2d6aae
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 #include "chrome/browser/chromeos/profiles/profile_util.h"
7 #include "chrome/browser/profiles/profile.h"
8 #include "chromeos/login/login_state.h"
10 namespace chromeos {
12 bool IsProfileAssociatedWithGaiaAccount(Profile* profile) {
13 if (!chromeos::LoginState::IsInitialized())
14 return false;
15 if (!chromeos::LoginState::Get()->IsUserGaiaAuthenticated())
16 return false;
17 if (profile->IsOffTheRecord())
18 return false;
19 return true;
22 } // namespace chromeos