Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: chrome/browser/extensions/api/autotest_private/autotest_private_api.cc

Issue 11778097: Revert revision 176015 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h" 5 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api.h"
6 6
7 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api_fa ctory.h" 7 #include "chrome/browser/extensions/api/autotest_private/autotest_private_api_fa ctory.h"
8 #include "chrome/browser/extensions/extension_function_registry.h" 8 #include "chrome/browser/extensions/extension_function_registry.h"
9 #include "chrome/browser/lifetime/application_lifetime.h" 9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #include "chrome/common/extensions/api/autotest_private.h" 10 #include "chrome/common/extensions/api/autotest_private.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 return true; 81 return true;
82 } 82 }
83 83
84 bool AutotestPrivateLoginStatusFunction::RunImpl() { 84 bool AutotestPrivateLoginStatusFunction::RunImpl() {
85 DVLOG(1) << "AutotestPrivateLoginStatusFunction"; 85 DVLOG(1) << "AutotestPrivateLoginStatusFunction";
86 SetResult(base::Value::CreateStringValue(GetUserLoginStatus())); 86 SetResult(base::Value::CreateStringValue(GetUserLoginStatus()));
87 return true; 87 return true;
88 } 88 }
89 89
90 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) { 90 AutotestPrivateAPI::AutotestPrivateAPI() : test_mode_(false) {
91 ExtensionFunctionRegistry* registry =
92 ExtensionFunctionRegistry::GetInstance();
93 registry->RegisterFunction<AutotestPrivateLogoutFunction>();
94 registry->RegisterFunction<AutotestPrivateRestartFunction>();
95 registry->RegisterFunction<AutotestPrivateShutdownFunction>();
96 registry->RegisterFunction<AutotestPrivateLoginStatusFunction>();
91 } 97 }
92 98
93 AutotestPrivateAPI::~AutotestPrivateAPI() { 99 AutotestPrivateAPI::~AutotestPrivateAPI() {
94 } 100 }
95 101
96 } // namespace extensions 102 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698