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

Side by Side Diff: chrome/browser/extensions/api/webstore_private/webstore_private_api.cc

Issue 228073005: Move core extensions l10n code to //extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unused header is unused Created 6 years, 8 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/webstore_private/webstore_private_api.h" 5 #include "chrome/browser/extensions/api/webstore_private/webstore_private_api.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/gpu/gpu_feature_checker.h" 23 #include "chrome/browser/gpu/gpu_feature_checker.h"
24 #include "chrome/browser/profiles/profile_manager.h" 24 #include "chrome/browser/profiles/profile_manager.h"
25 #include "chrome/browser/signin/signin_manager_factory.h" 25 #include "chrome/browser/signin/signin_manager_factory.h"
26 #include "chrome/browser/signin/signin_tracker_factory.h" 26 #include "chrome/browser/signin/signin_tracker_factory.h"
27 #include "chrome/browser/sync/profile_sync_service.h" 27 #include "chrome/browser/sync/profile_sync_service.h"
28 #include "chrome/browser/sync/profile_sync_service_factory.h" 28 #include "chrome/browser/sync/profile_sync_service_factory.h"
29 #include "chrome/browser/ui/app_list/app_list_service.h" 29 #include "chrome/browser/ui/app_list/app_list_service.h"
30 #include "chrome/browser/ui/app_list/app_list_util.h" 30 #include "chrome/browser/ui/app_list/app_list_util.h"
31 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
32 #include "chrome/common/extensions/extension_constants.h" 32 #include "chrome/common/extensions/extension_constants.h"
33 #include "chrome/common/extensions/extension_l10n_util.h"
34 #include "chrome/common/pref_names.h" 33 #include "chrome/common/pref_names.h"
35 #include "components/signin/core/browser/signin_manager.h" 34 #include "components/signin/core/browser/signin_manager.h"
36 #include "content/public/browser/gpu_data_manager.h" 35 #include "content/public/browser/gpu_data_manager.h"
37 #include "content/public/browser/notification_details.h" 36 #include "content/public/browser/notification_details.h"
38 #include "content/public/browser/notification_source.h" 37 #include "content/public/browser/notification_source.h"
39 #include "content/public/browser/web_contents.h" 38 #include "content/public/browser/web_contents.h"
40 #include "extensions/browser/extension_function_dispatcher.h" 39 #include "extensions/browser/extension_function_dispatcher.h"
41 #include "extensions/browser/extension_prefs.h" 40 #include "extensions/browser/extension_prefs.h"
42 #include "extensions/browser/extension_system.h" 41 #include "extensions/browser/extension_system.h"
43 #include "extensions/common/error_utils.h" 42 #include "extensions/common/error_utils.h"
44 #include "extensions/common/extension.h" 43 #include "extensions/common/extension.h"
44 #include "extensions/common/extension_l10n_util.h"
45 #include "grit/chromium_strings.h" 45 #include "grit/chromium_strings.h"
46 #include "grit/generated_resources.h" 46 #include "grit/generated_resources.h"
47 #include "ui/base/l10n/l10n_util.h" 47 #include "ui/base/l10n/l10n_util.h"
48 48
49 using content::GpuDataManager; 49 using content::GpuDataManager;
50 50
51 namespace extensions { 51 namespace extensions {
52 52
53 namespace BeginInstallWithManifest3 = 53 namespace BeginInstallWithManifest3 =
54 api::webstore_private::BeginInstallWithManifest3; 54 api::webstore_private::BeginInstallWithManifest3;
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return true; 682 return true;
683 } 683 }
684 684
685 bool WebstorePrivateIsInIncognitoModeFunction::RunImpl() { 685 bool WebstorePrivateIsInIncognitoModeFunction::RunImpl() {
686 results_ = IsInIncognitoMode::Results::Create( 686 results_ = IsInIncognitoMode::Results::Create(
687 GetProfile() != GetProfile()->GetOriginalProfile()); 687 GetProfile() != GetProfile()->GetOriginalProfile());
688 return true; 688 return true;
689 } 689 }
690 690
691 } // namespace extensions 691 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698