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

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

Issue 5213002: Fix for Bug 50726 "Save extension list and "winning" prefs from extensions" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Lint issues and factored out renaming of InMemoryPrefStore Created 10 years, 1 month 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) 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 "chrome/browser/extensions/extensions_service.h" 5 #include "chrome/browser/extensions/extensions_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 << "id: " << extension_id; 523 << "id: " << extension_id;
524 return false; 524 return false;
525 } 525 }
526 526
527 return true; 527 return true;
528 } 528 }
529 529
530 ExtensionsService::ExtensionsService(Profile* profile, 530 ExtensionsService::ExtensionsService(Profile* profile,
531 const CommandLine* command_line, 531 const CommandLine* command_line,
532 const FilePath& install_directory, 532 const FilePath& install_directory,
533 ExtensionPrefs* extension_prefs,
533 bool autoupdate_enabled) 534 bool autoupdate_enabled)
534 : profile_(profile), 535 : profile_(profile),
535 extension_prefs_(new ExtensionPrefs(profile->GetPrefs(), 536 extension_prefs_(extension_prefs),
536 install_directory)),
537 install_directory_(install_directory), 537 install_directory_(install_directory),
538 extensions_enabled_(true), 538 extensions_enabled_(true),
539 show_extensions_prompts_(true), 539 show_extensions_prompts_(true),
540 ready_(false), 540 ready_(false),
541 ALLOW_THIS_IN_INITIALIZER_LIST(toolbar_model_(this)), 541 ALLOW_THIS_IN_INITIALIZER_LIST(toolbar_model_(this)),
542 default_apps_(profile->GetPrefs()), 542 default_apps_(profile->GetPrefs()),
543 event_routers_initialized_(false) { 543 event_routers_initialized_(false) {
544 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 544 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
545 545
546 // Figure out if extension installation should be enabled. 546 // Figure out if extension installation should be enabled.
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 } 1949 }
1950 1950
1951 bool ExtensionsService::IsBeingUpgraded(const Extension* extension) { 1951 bool ExtensionsService::IsBeingUpgraded(const Extension* extension) {
1952 return extension_runtime_data_[extension->id()].being_upgraded; 1952 return extension_runtime_data_[extension->id()].being_upgraded;
1953 } 1953 }
1954 1954
1955 void ExtensionsService::SetBeingUpgraded(const Extension* extension, 1955 void ExtensionsService::SetBeingUpgraded(const Extension* extension,
1956 bool value) { 1956 bool value) {
1957 extension_runtime_data_[extension->id()].being_upgraded = value; 1957 extension_runtime_data_[extension->id()].being_upgraded = value;
1958 } 1958 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698