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

Side by Side Diff: chrome/browser/rlz/rlz_extension_api.cc

Issue 8374025: Move RLZ extension API to rlz directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: header again Created 9 years, 2 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
« no previous file with comments | « chrome/browser/rlz/rlz_extension_api.h ('k') | chrome/browser/rlz/rlz_extension_apitest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/rlz/rlz_extension_api.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/threading/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,
(...skipping 186 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/rlz/rlz_extension_api.h ('k') | chrome/browser/rlz/rlz_extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698