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

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

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/autofill/form_group.cc ('k') | chrome/browser/safe_browsing/chunk_range.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) 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 <algorithm>
6
5 #include "chrome/browser/extensions/default_apps.h" 7 #include "chrome/browser/extensions/default_apps.h"
6 8
7 #include "base/command_line.h" 9 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
9 #include "chrome/browser/prefs/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
10 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
12 14
13 const int DefaultApps::kAppsPromoCounterMax = 10; 15 const int DefaultApps::kAppsPromoCounterMax = 10;
14 16
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 } 172 }
171 173
172 bool DefaultApps::GetDefaultAppsInstalled() const { 174 bool DefaultApps::GetDefaultAppsInstalled() const {
173 return prefs_->GetBoolean(prefs::kDefaultAppsInstalled); 175 return prefs_->GetBoolean(prefs::kDefaultAppsInstalled);
174 } 176 }
175 177
176 void DefaultApps::SetDefaultAppsInstalled(bool val) { 178 void DefaultApps::SetDefaultAppsInstalled(bool val) {
177 prefs_->SetBoolean(prefs::kDefaultAppsInstalled, val); 179 prefs_->SetBoolean(prefs::kDefaultAppsInstalled, val);
178 prefs_->ScheduleSavePersistentPrefs(); 180 prefs_->ScheduleSavePersistentPrefs();
179 } 181 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/form_group.cc ('k') | chrome/browser/safe_browsing/chunk_range.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698