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

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

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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/default_apps.h" 5 #include "chrome/browser/extensions/default_apps.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/prefs/pref_service.h" 11 #include "base/prefs/pref_service.h"
12 #include "base/strings/string_util.h"
12 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/common/chrome_switches.h" 15 #include "chrome/common/chrome_switches.h"
15 #include "chrome/common/chrome_version_info.h" 16 #include "chrome/common/chrome_version_info.h"
16 #include "chrome/common/extensions/extension_constants.h" 17 #include "chrome/common/extensions/extension_constants.h"
17 #include "chrome/common/pref_names.h" 18 #include "chrome/common/pref_names.h"
18 #include "components/pref_registry/pref_registry_syncable.h" 19 #include "components/pref_registry/pref_registry_syncable.h"
19 #include "extensions/common/extension.h" 20 #include "extensions/common/extension.h"
20 #include "ui/base/l10n/l10n_util.h"
21 21
22 #if !defined(OS_ANDROID) 22 #if !defined(OS_ANDROID)
23 #include "chrome/browser/first_run/first_run.h" 23 #include "chrome/browser/first_run/first_run.h"
24 #endif 24 #endif
25 25
26 namespace { 26 namespace {
27 27
28 // Returns true if the app was a default app in Chrome 22 28 // Returns true if the app was a default app in Chrome 22
29 bool IsOldDefaultApp(const std::string& extension_id) { 29 bool IsOldDefaultApp(const std::string& extension_id) {
30 return extension_id == extension_misc::kGmailAppId || 30 return extension_id == extension_misc::kGmailAppId ||
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 for (std::set<std::string>::iterator it = new_default_apps.begin(); 169 for (std::set<std::string>::iterator it = new_default_apps.begin();
170 it != new_default_apps.end(); ++it) { 170 it != new_default_apps.end(); ++it) {
171 prefs->Remove(*it, NULL); 171 prefs->Remove(*it, NULL);
172 } 172 }
173 } 173 }
174 174
175 ExternalProviderImpl::SetPrefs(prefs); 175 ExternalProviderImpl::SetPrefs(prefs);
176 } 176 }
177 177
178 } // namespace default_apps 178 } // namespace default_apps
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_message_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698