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

Side by Side Diff: apps/shell_window_geometry_cache.cc

Issue 46853004: Move ExtensionPrefs and friends to extensions/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and update app_shell Created 6 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
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 "apps/shell_window_geometry_cache.h" 5 #include "apps/shell_window_geometry_cache.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/extensions/extension_prefs.h"
12 #include "chrome/browser/extensions/extension_prefs_factory.h"
13 #include "chrome/browser/profiles/incognito_helpers.h" 11 #include "chrome/browser/profiles/incognito_helpers.h"
14 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
15 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h" 13 #include "components/browser_context_keyed_service/browser_context_dependency_ma nager.h"
16 #include "content/public/browser/notification_service.h" 14 #include "content/public/browser/notification_service.h"
17 #include "content/public/browser/notification_types.h" 15 #include "content/public/browser/notification_types.h"
16 #include "extensions/browser/extension_prefs.h"
17 #include "extensions/browser/extension_prefs_factory.h"
18 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
19 19
20 namespace { 20 namespace {
21 21
22 // The timeout in milliseconds before we'll persist window geometry to the 22 // The timeout in milliseconds before we'll persist window geometry to the
23 // StateStore. 23 // StateStore.
24 const int kSyncTimeoutMilliseconds = 1000; 24 const int kSyncTimeoutMilliseconds = 1000;
25 25
26 } // namespace 26 } // namespace
27 27
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 324
325 void ShellWindowGeometryCache::AddObserver(Observer* observer) { 325 void ShellWindowGeometryCache::AddObserver(Observer* observer) {
326 observers_.AddObserver(observer); 326 observers_.AddObserver(observer);
327 } 327 }
328 328
329 void ShellWindowGeometryCache::RemoveObserver(Observer* observer) { 329 void ShellWindowGeometryCache::RemoveObserver(Observer* observer) {
330 observers_.RemoveObserver(observer); 330 observers_.RemoveObserver(observer);
331 } 331 }
332 332
333 } // namespace apps 333 } // namespace apps
OLDNEW
« no previous file with comments | « apps/shell/shell_extensions_browser_client.cc ('k') | apps/shell_window_geometry_cache_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698