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

Side by Side Diff: chrome/browser/apps/drive/drive_app_mapping.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/apps/drive/drive_app_mapping.h" 5 #include "chrome/browser/apps/drive/drive_app_mapping.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/prefs/pref_service.h"
10 #include "base/prefs/scoped_user_pref_update.h"
11 #include "base/values.h" 9 #include "base/values.h"
12 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
13 #include "components/pref_registry/pref_registry_syncable.h" 11 #include "components/pref_registry/pref_registry_syncable.h"
12 #include "components/prefs/pref_service.h"
13 #include "components/prefs/scoped_user_pref_update.h"
14 14
15 namespace { 15 namespace {
16 16
17 // Key for a string value that holds the mapped chrome app id. 17 // Key for a string value that holds the mapped chrome app id.
18 const char kKeyChromeApp[] = "chrome_app"; 18 const char kKeyChromeApp[] = "chrome_app";
19 19
20 // Key for a boolean value of whether the mapped chrome app is auto generated. 20 // Key for a boolean value of whether the mapped chrome app is auto generated.
21 // Default is false. 21 // Default is false.
22 const char kKeyGenerated[] = "generated"; 22 const char kKeyGenerated[] = "generated";
23 23
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 uninstalled_app_ids_.insert(app_id); 160 uninstalled_app_ids_.insert(app_id);
161 } 161 }
162 } 162 }
163 163
164 void DriveAppMapping::UpdateUninstalledList() { 164 void DriveAppMapping::UpdateUninstalledList() {
165 ListPrefUpdate update(prefs_, prefs::kAppLauncherUninstalledDriveApps); 165 ListPrefUpdate update(prefs_, prefs::kAppLauncherUninstalledDriveApps);
166 update->Clear(); 166 update->Clear();
167 for (const auto& app_id : uninstalled_app_ids_) 167 for (const auto& app_id : uninstalled_app_ids_)
168 update->AppendString(app_id); 168 update->AppendString(app_id);
169 } 169 }
OLDNEW
« no previous file with comments | « chrome/browser/apps/app_launch_for_metro_restart_win.cc ('k') | chrome/browser/apps/shortcut_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698