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

Side by Side Diff: chrome/browser/extensions/extension_rlz_module.cc

Issue 6028009: Move base/thread.h to base/threading, fix up callers to use the new location.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_protocols.cc ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698