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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_event_router.cc

Issue 10826225: Clean-up inline members of nested classes (chrome/browser/chromeos/) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: forgotten files Created 8 years, 4 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 | « chrome/browser/chromeos/extensions/file_browser_event_router.h ('k') | 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) 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/chromeos/extensions/file_browser_event_router.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_event_router.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 bool is_remote_file_system) 761 bool is_remote_file_system)
762 : ref_count_(0), 762 : ref_count_(0),
763 is_remote_file_system_(is_remote_file_system) { 763 is_remote_file_system_(is_remote_file_system) {
764 if (!is_remote_file_system_) 764 if (!is_remote_file_system_)
765 file_watcher_.reset(new base::files::FilePathWatcher()); 765 file_watcher_.reset(new base::files::FilePathWatcher());
766 766
767 virtual_path_ = path; 767 virtual_path_ = path;
768 AddExtension(extension_id); 768 AddExtension(extension_id);
769 } 769 }
770 770
771 FileBrowserEventRouter::FileWatcherExtensions::~FileWatcherExtensions() {}
772
771 void FileBrowserEventRouter::FileWatcherExtensions::AddExtension( 773 void FileBrowserEventRouter::FileWatcherExtensions::AddExtension(
772 const std::string& extension_id) { 774 const std::string& extension_id) {
773 ExtensionUsageRegistry::iterator it = extensions_.find(extension_id); 775 ExtensionUsageRegistry::iterator it = extensions_.find(extension_id);
774 if (it != extensions_.end()) { 776 if (it != extensions_.end()) {
775 it->second++; 777 it->second++;
776 } else { 778 } else {
777 extensions_.insert(ExtensionUsageRegistry::value_type(extension_id, 1)); 779 extensions_.insert(ExtensionUsageRegistry::value_type(extension_id, 1));
778 } 780 }
779 781
780 ref_count_++; 782 ref_count_++;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 return scoped_refptr<RefcountedProfileKeyedService>( 861 return scoped_refptr<RefcountedProfileKeyedService>(
860 new FileBrowserEventRouter(profile)); 862 new FileBrowserEventRouter(profile));
861 } 863 }
862 864
863 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() { 865 bool FileBrowserEventRouterFactory::ServiceHasOwnInstanceInIncognito() {
864 // Explicitly and always allow this router in guest login mode. see 866 // Explicitly and always allow this router in guest login mode. see
865 // chrome/browser/profiles/profile_keyed_base_factory.h comment 867 // chrome/browser/profiles/profile_keyed_base_factory.h comment
866 // for the details. 868 // for the details.
867 return true; 869 return true;
868 } 870 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/file_browser_event_router.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698