OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extension_rlz_module.h" | 5 #include "chrome/browser/extensions/extension_rlz_module.h" |
6 | 6 |
7 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
8 #include "base/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/common/extensions/extension.h" | 10 #include "chrome/common/extensions/extension.h" |
11 #include "rlz/win/lib/lib_values.h" | 11 #include "rlz/win/lib/lib_values.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 bool GetProductFromName(const std::string& product_name, | 15 bool GetProductFromName(const std::string& product_name, |
16 rlz_lib::Product* product) { | 16 rlz_lib::Product* product) { |
17 bool success = true; | 17 bool success = true; |
18 switch (product_name[0]) { | 18 switch (product_name[0]) { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 std::string ap_name; | 202 std::string ap_name; |
203 EXTENSION_FUNCTION_VALIDATE(access_points_list->GetString(i, &ap_name)); | 203 EXTENSION_FUNCTION_VALIDATE(access_points_list->GetString(i, &ap_name)); |
204 EXTENSION_FUNCTION_VALIDATE(rlz_lib::GetAccessPointFromName( | 204 EXTENSION_FUNCTION_VALIDATE(rlz_lib::GetAccessPointFromName( |
205 ap_name.c_str(), &access_points[i])); | 205 ap_name.c_str(), &access_points[i])); |
206 } | 206 } |
207 access_points[i] = rlz_lib::NO_ACCESS_POINT; | 207 access_points[i] = rlz_lib::NO_ACCESS_POINT; |
208 | 208 |
209 rlz_lib::ClearProductState(product, access_points.get()); | 209 rlz_lib::ClearProductState(product, access_points.get()); |
210 return true; | 210 return true; |
211 } | 211 } |
OLD | NEW |