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

Side by Side Diff: chrome/browser/extensions/settings/settings_frontend.cc

Issue 10451068: Fixing gcc 4.7 building problems. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Modified per Adam's comments Created 8 years, 6 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 (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/settings/settings_frontend.h" 5 #include "chrome/browser/extensions/settings/settings_frontend.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_path.h" 8 #include "base/file_path.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "chrome/browser/extensions/extension_event_names.h" 10 #include "chrome/browser/extensions/extension_event_names.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 SettingsStorageQuotaEnforcer::Limits limits = { 92 SettingsStorageQuotaEnforcer::Limits limits = {
93 api::storage::local::QUOTA_BYTES, 93 api::storage::local::QUOTA_BYTES,
94 UINT_MAX, 94 UINT_MAX,
95 UINT_MAX 95 UINT_MAX
96 }; 96 };
97 return limits; 97 return limits;
98 } 98 }
99 99
100 SettingsStorageQuotaEnforcer::Limits GetSyncLimits() { 100 SettingsStorageQuotaEnforcer::Limits GetSyncLimits() {
101 SettingsStorageQuotaEnforcer::Limits limits = { 101 SettingsStorageQuotaEnforcer::Limits limits = {
102 api::storage::sync::QUOTA_BYTES, 102 static_cast<size_t>(api::storage::sync::QUOTA_BYTES),
103 api::storage::sync::QUOTA_BYTES_PER_ITEM, 103 static_cast<size_t>(api::storage::sync::QUOTA_BYTES_PER_ITEM),
104 api::storage::sync::MAX_ITEMS 104 static_cast<size_t>(api::storage::sync::MAX_ITEMS)
105 }; 105 };
106 return limits; 106 return limits;
107 } 107 }
108 108
109 } // namespace 109 } // namespace
110 110
111 // Ref-counted container for a SettingsBackend object. 111 // Ref-counted container for a SettingsBackend object.
112 class SettingsFrontend::BackendWrapper 112 class SettingsFrontend::BackendWrapper
113 : public base::RefCountedThreadSafe<BackendWrapper> { 113 : public base::RefCountedThreadSafe<BackendWrapper> {
114 public: 114 public:
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 335 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
336 return observers_; 336 return observers_;
337 } 337 }
338 338
339 // BackendWrappers 339 // BackendWrappers
340 340
341 SettingsFrontend::BackendWrappers::BackendWrappers() {} 341 SettingsFrontend::BackendWrappers::BackendWrappers() {}
342 SettingsFrontend::BackendWrappers::~BackendWrappers() {} 342 SettingsFrontend::BackendWrappers::~BackendWrappers() {}
343 343
344 } // namespace extensions 344 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698