// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/test/data/webui/ntp4_browsertest.h" #include "base/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser.h" #include "chrome/common/pref_names.h" NTP4LoggedInWebUITest::NTP4LoggedInWebUITest() {} NTP4LoggedInWebUITest::~NTP4LoggedInWebUITest() {} void NTP4LoggedInWebUITest::SetLoginName(const std::string& name) { browser()->profile()->GetPrefs()->SetString(prefs::kGoogleServicesUsername, name); }