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

Side by Side Diff: chrome/browser/sync/test/integration/themes_helper.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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) 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/sync/test/integration/themes_helper.h" 5 #include "chrome/browser/sync/test/integration/themes_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 9 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
10 #include "chrome/browser/sync/test/integration/sync_extension_helper.h" 10 #include "chrome/browser/sync/test/integration/sync_extension_helper.h"
11 #include "chrome/browser/themes/theme_service.h" 11 #include "chrome/browser/themes/theme_service.h"
12 #include "chrome/browser/themes/theme_service_factory.h" 12 #include "chrome/browser/themes/theme_service_factory.h"
13 #include "chrome/common/extensions/extension.h" 13 #include "extensions/common/extension.h"
14 #include "extensions/common/id_util.h" 14 #include "extensions/common/id_util.h"
15 #include "extensions/common/manifest.h" 15 #include "extensions/common/manifest.h"
16 16
17 using sync_datatype_helper::test; 17 using sync_datatype_helper::test;
18 18
19 namespace { 19 namespace {
20 20
21 // Make a name to pass to an extension helper. 21 // Make a name to pass to an extension helper.
22 std::string MakeName(int index) { 22 std::string MakeName(int index) {
23 return "faketheme" + base::IntToString(index); 23 return "faketheme" + base::IntToString(index);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 void UseDefaultTheme(Profile* profile) { 68 void UseDefaultTheme(Profile* profile) {
69 GetThemeService(profile)->UseDefaultTheme(); 69 GetThemeService(profile)->UseDefaultTheme();
70 } 70 }
71 71
72 void UseNativeTheme(Profile* profile) { 72 void UseNativeTheme(Profile* profile) {
73 // TODO(akalin): Fix this inconsistent naming in the theme service. 73 // TODO(akalin): Fix this inconsistent naming in the theme service.
74 GetThemeService(profile)->SetNativeTheme(); 74 GetThemeService(profile)->SetNativeTheme();
75 } 75 }
76 76
77 } // namespace themes_helper 77 } // namespace themes_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698