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

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

Issue 19647011: Remove spammy logging in ExtensionService::SetBeingReloaded(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <set> 9 #include <set>
10 10
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after
2889 bool value) { 2889 bool value) {
2890 extension_runtime_data_[extension->id()].being_upgraded = value; 2890 extension_runtime_data_[extension->id()].being_upgraded = value;
2891 } 2891 }
2892 2892
2893 bool ExtensionService::IsBeingReloaded( 2893 bool ExtensionService::IsBeingReloaded(
2894 const std::string& extension_id) const { 2894 const std::string& extension_id) const {
2895 return ContainsKey(extensions_being_reloaded_, extension_id); 2895 return ContainsKey(extensions_being_reloaded_, extension_id);
2896 } 2896 }
2897 2897
2898 void ExtensionService::SetBeingReloaded(const std::string& extension_id, 2898 void ExtensionService::SetBeingReloaded(const std::string& extension_id,
2899 bool isBeingReloaded) { 2899 bool isBeingReloaded) {
2900 LOG(INFO) << "****** " << __FUNCTION__; 2900 if (isBeingReloaded)
2901 LOG(INFO) << "****** " << __FUNCTION__ << " extension_id is: "
2902 << extension_id << " and isBeingReloaded is " << isBeingReloaded;
2903 LOG(INFO) << "****** " << __FUNCTION__ << " Set size is "
2904 << extensions_being_reloaded_.size();
2905 if (isBeingReloaded) {
2906 extensions_being_reloaded_.insert(extension_id); 2901 extensions_being_reloaded_.insert(extension_id);
2907 LOG(INFO) << "****** " << __FUNCTION__ << " insert succeeded."; 2902 else
2908 } else {
2909 extensions_being_reloaded_.erase(extension_id); 2903 extensions_being_reloaded_.erase(extension_id);
2910 LOG(INFO) << "****** " << __FUNCTION__ << " erase succeeded.";
2911 }
2912 } 2904 }
2913 2905
2914 bool ExtensionService::HasUsedWebRequest(const Extension* extension) const { 2906 bool ExtensionService::HasUsedWebRequest(const Extension* extension) const {
2915 ExtensionRuntimeDataMap::const_iterator it = 2907 ExtensionRuntimeDataMap::const_iterator it =
2916 extension_runtime_data_.find(extension->id()); 2908 extension_runtime_data_.find(extension->id());
2917 return it == extension_runtime_data_.end() ? false : 2909 return it == extension_runtime_data_.end() ? false :
2918 it->second.has_used_webrequest; 2910 it->second.has_used_webrequest;
2919 } 2911 }
2920 2912
2921 void ExtensionService::SetHasUsedWebRequest(const Extension* extension, 2913 void ExtensionService::SetHasUsedWebRequest(const Extension* extension,
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
3084 } 3076 }
3085 3077
3086 void ExtensionService::AddUpdateObserver(extensions::UpdateObserver* observer) { 3078 void ExtensionService::AddUpdateObserver(extensions::UpdateObserver* observer) {
3087 update_observers_.AddObserver(observer); 3079 update_observers_.AddObserver(observer);
3088 } 3080 }
3089 3081
3090 void ExtensionService::RemoveUpdateObserver( 3082 void ExtensionService::RemoveUpdateObserver(
3091 extensions::UpdateObserver* observer) { 3083 extensions::UpdateObserver* observer) {
3092 update_observers_.RemoveObserver(observer); 3084 update_observers_.RemoveObserver(observer);
3093 } 3085 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698